1
0
Fork 0
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

16 lines
252 B

#!/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