cleanup code with variables for better access
This commit is contained in:
@@ -4,6 +4,8 @@
|
||||
# | bukkit-status by Elias Schriefer |
|
||||
# ×==================================×
|
||||
|
||||
server=""
|
||||
|
||||
if [ "$1" = "-h" ]
|
||||
then
|
||||
echo "bukkit-status [option]"
|
||||
@@ -15,7 +17,7 @@ fi
|
||||
|
||||
# Is there a window with name "bukkit" already running in screen?
|
||||
# We don't need your fukcing text, ew...
|
||||
sudo screen -ls bukkit > /dev/null
|
||||
sudo screen -ls $server > /dev/null
|
||||
if [ $? -eq 0 ]
|
||||
then
|
||||
# If the screen window is indeed running, shout it in my
|
||||
|
Reference in New Issue
Block a user