Horje
Checking dependencies BASH Code Example
Checking dependencies BASH
#!/bin/bash
echo -n "Checking dependencies... "
for name in youtube-dl yad ffmpeg
do
  [[ $(which $name 2>/dev/null) ]] || { echo -en "\n$name needs to be installed. Use 'sudo apt-get install $name'";deps=1; }
done
[[ $deps -ne 1 ]] && echo "OK" || { echo -en "\nInstall the above and rerun this script\n";exit 1; }




Shell

Related
update component tns-android Code Example update component tns-android Code Example
drag and drop not working linux virtual machine Code Example drag and drop not working linux virtual machine Code Example
adding file system to a volume Code Example adding file system to a volume Code Example
how to count size dir with cli linux Code Example how to count size dir with cli linux Code Example
linux mv all folder to previous folder Code Example linux mv all folder to previous folder Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
9