Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

Checking dependencies BASH

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

PREVIOUS NEXT
Code Example
Shell :: kubernetes get node taints 
Shell :: asdf use local nodejs 
Shell :: check for remote added git 
Shell :: linux change user shell /bin/false 
Shell :: linux permissions 
Shell :: copy files from certain date linux 
Shell :: check service status in linux 
Shell :: boolean in shell script 
Shell :: how to checkout to another branch in git 
Shell :: first 3 lines of a file 
Shell :: blame in github 
Shell :: how to cancel a scheduled shutdown or reboot with shutdown command 
Shell :: surge installation 
Shell :: pycharm 2021.1 linux crack 
Shell :: bash for stdin 
Shell :: awk tab delimited 
Shell :: grep ignore repeated lines 
Shell :: odoo docker 
Shell :: failed to push some refs to 
Shell :: run MongoDB manually as a background process macos 
Shell :: how to change last commit message in git 
Shell :: Kubernetes configuration file is group-readable 
Shell :: how to edit crontab macos 
Shell :: bash test if in interactive shell 
Shell :: aircrack-ng install command 
Shell :: ubuntu path in windows 10 
Shell :: git edit user of last commit 
Shell :: symbolic link linux 
Shell :: windows cat grep equivalent 
Shell :: restart bind centos 8 
ADD CONTENT
Topic
Content
Source link
Name
3+8 =