summaryrefslogtreecommitdiff
path: root/rec.sh
diff options
context:
space:
mode:
authorlittleblack111 <littleblack11111@gmail.com>2024-10-27 23:11:27 +0800
committerlittleblack111 <littleblack11111@gmail.com>2024-10-27 23:11:27 +0800
commitde643dda9debd8c69a00a82501d2a9f574414f59 (patch)
treedc23165f0388f397edbefd4d683ec4281efa6a69 /rec.sh
parent2a97af4f7c21a04bdea4cc95b4d361210c3f3557 (diff)
fix(rec.sh): fixed wrong $? measure fore kill gpuscreenrecorder
Diffstat (limited to 'rec.sh')
-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