Fix if statement

This commit is contained in:
RealStickman 2021-07-24 16:59:43 +02:00
parent 299bed21b7
commit a4fbce3d94
2 changed files with 2 additions and 2 deletions

View File

@ -1,7 +1,7 @@
#!/usr/bin/env bash
set -euo pipefail
if $# -ne 1; then
if [ $# -ne 1 ]; then
echo "Please provide the path to one video file"
$(exit 1); echo "$?"
fi

View File

@ -1,7 +1,7 @@
#!/usr/bin/env bash
set -euo pipefail
if $# -ne 3; then
if [ $# -ne 3 ]; then
echo "Please use this script with \"PATH\" \"Input Extension\" \"Output Extension\""
$(exit 1); echo "$?"
fi