better?
This commit is contained in:
@@ -79,10 +79,10 @@ in {
|
|||||||
echo -e "''${headings}gameservers:''${reset}"
|
echo -e "''${headings}gameservers:''${reset}"
|
||||||
for service in velocity smp superflat bento; do
|
for service in velocity smp superflat bento; do
|
||||||
status=$(systemctl is-active $service 2>/dev/null)
|
status=$(systemctl is-active $service 2>/dev/null)
|
||||||
if [ "''${status}" = "active" ]; then
|
if [ "$status" = "active" ]; then
|
||||||
echo -e " ''${active}$service''${reset} - running"
|
printf "%-15s %s%s\n" "''${active}$service''${reset}" "running"
|
||||||
else
|
else
|
||||||
echo -e " ''${inactive}$service''${reset} - not running"
|
printf "%-15s %s%s\n" "''${active}$service''${reset}" "not running"
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
echo
|
echo
|
||||||
|
|||||||
Reference in New Issue
Block a user