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
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