added depdendcy check
This commit is contained in:
parent
a43ab42f25
commit
012a40d952
10
rmmusic
10
rmmusic
@ -1,4 +1,14 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
DEPENDENCY_CHECK_COMMANDS=("spleeter" "ffmpeg")
|
||||||
|
|
||||||
|
for DEPENDENCY in "${DEPENDENCY_CHECK_COMMANDS[@]}"; do
|
||||||
|
if ! command -v "$DEPENDENCY" 1>/dev/null; then
|
||||||
|
printf "%s not found. Please install it.\n" "$DEPENDENCY" >&2
|
||||||
|
exit 2
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
unset DEPENDENCY
|
||||||
|
|
||||||
|
|
||||||
inputfile=$1
|
inputfile=$1
|
||||||
outputfolder=rmmusic
|
outputfolder=rmmusic
|
||||||
|
Loading…
x
Reference in New Issue
Block a user