12 lines
294 B
Bash
Executable file
12 lines
294 B
Bash
Executable file
#!/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"
|