[screenrecord.sh] Exit with error if operation is in progress and -t was not specified.
This commit is contained in:
parent
4470e829d3
commit
5f5d6aeb16
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user