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 |