View | Details | Raw Unified
Collapse All | Expand All

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