Skip to content

Instantly share code, notes, and snippets.

@tapajos
Created May 13, 2016 23:46
Show Gist options
  • Save tapajos/2efe140176f285028acb215a5de3eec3 to your computer and use it in GitHub Desktop.
Save tapajos/2efe140176f285028acb215a5de3eec3 to your computer and use it in GitHub Desktop.
print_green "Checking POW: "
POW_PATH="${HOME}/.pow"
if [ ! -d ${POW_PATH} ]; then
print_red "failed\n"
print_red "Installing POW\n"
curl get.pow.cx | sh
print_green "Checking POW: OK\n"
else
print_green "OK\n"
fi
print_green "Configuring POW: "
if [ ! -f "${POW_PATH}/project_1" ]; then
echo "3000" > "$POW_PATH/project_1"
fi
if [ ! -f "${POW_PATH}/project_2" ]; then
echo "3001" > "${POW_PATH}/project_2"
fi
print_green "OK\n"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment