diff --git a/arch-config/scripts/pieces/ffmpeg-cut-black.sh b/arch-config/scripts/pieces/ffmpeg-cut-black.sh index 456c442d..cc01990f 100755 --- a/arch-config/scripts/pieces/ffmpeg-cut-black.sh +++ b/arch-config/scripts/pieces/ffmpeg-cut-black.sh @@ -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 diff --git a/arch-config/scripts/pieces/ffmpeg-transcode.sh b/arch-config/scripts/pieces/ffmpeg-transcode.sh index 06422502..f65fff45 100755 --- a/arch-config/scripts/pieces/ffmpeg-transcode.sh +++ b/arch-config/scripts/pieces/ffmpeg-transcode.sh @@ -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