Skip to content

Commit

Permalink
script: small fix
Browse files Browse the repository at this point in the history
  • Loading branch information
verysillycat committed Dec 3, 2024
1 parent d8d2815 commit c76869c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vnrez.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c76869c

Please sign in to comment.