[screenrecord.sh] Exit with error if operation is in progress and -t was not specified.

This commit is contained in:
Lorenzo Cogotti 2022-11-04 22:14:43 +01:00
parent 4470e829d3
commit 5f5d6aeb16

View File

@ -76,4 +76,7 @@ if ! isrunning; then
elif [ ! -z "$tflag" ]; then
# Toggle recording off
kill -s INT -- "$pid"
else
printf -- "%s: operation refused, recording already in progress.\n" "$(basename -- "$0" .sh)" >&2
exit 1
fi