2021-06-15 09:07:40 +02:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
FILE="/run/user/1000/org/current-task"
|
|
|
|
message=$(cat ${FILE} 2>/dev/null)
|
|
|
|
exit_code=0
|
2020-10-07 09:05:56 +02:00
|
|
|
|
2021-06-15 09:07:40 +02:00
|
|
|
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
|