From 30d08e704739c83816e626c001f2bbb432e8fc6f Mon Sep 17 00:00:00 2001 From: vonavi Date: Sat, 6 Sep 2014 17:40:53 +0400 Subject: [PATCH] Script 'schedule': exit on not started tour. --- schedule | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/schedule b/schedule index e27db9c..34ea939 100755 --- a/schedule +++ b/schedule @@ -152,7 +152,7 @@ function get_tour_dates { if ! $SHOW_FUTURE; then # Unknown beginning of tour - [[ $date_beg =~ \? ]] && break + [[ $date_beg =~ \? ]] && exit 0 if date --version >/dev/null 2>&1; then local date_beg_gnu=$(sed -E "s/${date_re}/\3-\2-\1/" <<< $date_beg) @@ -164,7 +164,7 @@ function get_tour_dates { local date_this=$(date +%s) # The date of tour later than today - (( date_tour > date_this )) && break + (( date_tour > date_this )) && exit 0 fi # Use short dates