From: Tim Pope Date: Thu, 28 Oct 2004 19:33:07 +0000 (+0000) Subject: Removed space in caminfo and updated status on abe X-Git-Url: http://git.tpope.net/?p=tpope-extra.git;a=commitdiff_plain;h=1b4a78d29bac00a8ead297a427a38a51a22723c0 Removed space in caminfo and updated status on abe --- diff --git a/bin/away-actions b/bin/away-actions index 5bcf9f9..c49a1dc 100755 --- a/bin/away-actions +++ b/bin/away-actions @@ -18,8 +18,10 @@ esac if [ "$is_away" = 1 ]; then [ ! -f /tmp/.tpope_lights ] && touch /tmp/.tpope_lights && br -F -F -else - rm -f /tmp/.tpope_lights; br -n 5 +elif [ -f /tmp/.tpope_lights ]; then + br -n 5 + rm -f /tmp/.tpope_lights + br -n 5 fi if [ "$activity" ]; then @@ -37,9 +39,10 @@ if [ -z "$information" ]; then echo Here > "$HOME/.status" rm -f "$HOME/.plan" else - echo " - $information" > "$HOME/.caminfo" + echo "- $information" > "$HOME/.caminfo" echo "$information" > "$HOME/.status" echo "$information" > "$HOME/.plan" fi ping -c 1 bart >/dev/null && scp -q "$HOME/.status" bart: 2>/dev/null +ping -c 1 abe >/dev/null && scp -q "$HOME/.status" abe: 2>/dev/null