cleanup code with variables for better access

This commit is contained in:
2022-01-02 18:51:34 +01:00
parent 71b1cc7924
commit 266d5b0bf0
3 changed files with 15 additions and 9 deletions

View File

@@ -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