added depdendcy check
This commit is contained in:
		
							
								
								
									
										10
									
								
								rmmusic
									
									
									
									
									
								
							
							
						
						
									
										10
									
								
								rmmusic
									
									
									
									
									
								
							@@ -1,4 +1,14 @@
 | 
			
		||||
#!/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
 | 
			
		||||
outputfolder=rmmusic
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user