Skip to content

Instantly share code, notes, and snippets.

@byteturtle
Last active March 8, 2017 20:27
Show Gist options
  • Save byteturtle/e3c4701b1821711608d75b30c77ac588 to your computer and use it in GitHub Desktop.
Save byteturtle/e3c4701b1821711608d75b30c77ac588 to your computer and use it in GitHub Desktop.
#!/bin/bash
white='\033[0;37m'
red='\033[0;31m'
green='\033[0;32m'
nocolor='\033[0m'
status=$(curl -s http://status.schaffenburg.org)
if [ "$status" == "verriegelt" ]; then
status="${red}closed${nocolor}"
else
status="${green}open${nocolor}"
fi
echo -e "${white}Spacestatus:${nocolor} $status"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment