summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xrec.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/rec.sh b/rec.sh
index 5d23787..c6636da 100755
--- a/rec.sh
+++ b/rec.sh
@@ -22,7 +22,7 @@ function status() {
function recorder() {
killall -SIGINT gpu-screen-recorder
- if ! [ $? -eq ]; then
+ if [ $? -eq 0 ]; then
filename=$(cat $XDG_CACHE_HOME/rec_filename)
(dragon --icon-only --thumb-size 512 --and-exit "$XDG_VIDEOS_DIR/$filename" & sleep 10 && kill $!)
if [ "$(cat $XDG_CACHE_HOME/rec_prev_dnd)" == "false" ]; then