dotfiles/bin/executable_org-get-current-...

17 lines
252 B
Plaintext
Raw Normal View History

#!/usr/bin/env bash
FILE="/run/user/1000/org/current-task"
message=$(cat ${FILE} 2>/dev/null)
exit_code=0
if [ ! -f $FILE ]; then
message="No file found";
exit_code=1;
fi;
if grep chilling $FILE; then
exit_code=1
fi
echo $message
exit $exit_code