Skip to content

Instantly share code, notes, and snippets.

@rankun203
Created January 18, 2018 02:40
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
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