X-Git-Url: http://git.tpope.net/?p=tpope-extra.git;a=blobdiff_plain;f=bin%2Faway-actions;h=c49a1dc936d8dfc225b1da9b9ac3002be9ae458c;hp=5bcf9f99f481e3dc2e41bf1d08ce1e2558474c68;hb=1b4a78d29bac00a8ead297a427a38a51a22723c0;hpb=5006e21be08831527203ee4777de1c3d29b2abb2 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