Skip to content

Instantly share code, notes, and snippets.

@rankun203
Created January 18, 2018 02:40
Show Gist options
  • Save rankun203/484ec62e7509e719869256213787de5b to your computer and use it in GitHub Desktop.
Save rankun203/484ec62e7509e719869256213787de5b to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
# Check local dev
check_command() {
WHERE=`whereis $1`
TIP=$2
if [[ -z "${WHERE}" ]]; then
echo "$1 is required, ${TIP}"
else
return
fi
}
check_command git 'apt install git'
check_command postcss 'npm i -g postcss-cli'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment