Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 117718
Collapse All | Expand All

(-)sarab.orig/sarab.sh (-1 / +1 lines)
Lines 34-40 Link Here
34
function rotate 
34
function rotate 
35
{
35
{
36
    lines=$(cat $SARAB_ETC/$ROTATION_SCHEDULE | wc -l)
36
    lines=$(cat $SARAB_ETC/$ROTATION_SCHEDULE | wc -l)
37
    firstline="$(head -n 1 $SARAB_ETC/rotation.schedule)"
37
    firstline="$(head -n 1 $SARAB_ETC/$ROTATION_SCHEDULE)"
38
38
39
    # Copy all but the first line back into rotation schedule
39
    # Copy all but the first line back into rotation schedule
40
    tail -n $(expr $lines - 1) $SARAB_ETC/$ROTATION_SCHEDULE > $SARAB_ETC/rotation.schedule.temp
40
    tail -n $(expr $lines - 1) $SARAB_ETC/$ROTATION_SCHEDULE > $SARAB_ETC/rotation.schedule.temp

Return to bug 117718