From c76869c02328ed2fedcfc8b6192129261ff4227e Mon Sep 17 00:00:00 2001 From: Cortex <126973723+verysillycat@users.noreply.github.com> Date: Mon, 2 Dec 2024 21:58:45 -0600 Subject: [PATCH] script: small fix --- vnrez.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vnrez.sh b/vnrez.sh index f8d7b60..b2e8d84 100755 --- a/vnrez.sh +++ b/vnrez.sh @@ -658,9 +658,9 @@ fi if [[ "$1" == "record" || "$2" == "record" ]]; then if [[ "$2" == "--abort" ]]; then "$SCRIPT_DIR/components/record.sh" "${@:2}" - elif [[ "$1" == "auto" && ! -f "$CONFIG_FILE" ]]; then + elif [[ "$1" == "auto" || "$2" == "record" && ! -f "$CONFIG_FILE" ]]; then if pgrep -x ffmpeg >/dev/null || pgrep -x wf-recorder >/dev/null || pgrep -x wl-screenrec >/dev/null || pgrep -x kooha >/dev/null; then - "$SCRIPT_DIR/components/record.sh" auto "${@:3}" + "$SCRIPT_DIR/components/record.sh" auto exit 0 else if pgrep -x ffmpeg >/dev/null || pgrep -x wf-recorder >/dev/null || pgrep -x wl-screenrec >/dev/null || pgrep -x kooha >/dev/null; then