diff options
author | Jakob Stendahl <jakob.stendahl@outlook.com> | 2018-12-05 23:21:22 +0100 |
---|---|---|
committer | Jakob Stendahl <jakob.stendahl@outlook.com> | 2018-12-05 23:21:22 +0100 |
commit | a02968d77a3933311d8f6869967b75dad301705a (patch) | |
tree | 34406bb836be85b8c8db086da254dcd1a5acf9d3 /bin | |
parent | 069552dc479a6c420d6440c9fdefb4ddf63eac08 (diff) | |
download | Luxcena-Neo-a02968d77a3933311d8f6869967b75dad301705a.tar.gz Luxcena-Neo-a02968d77a3933311d8f6869967b75dad301705a.zip |
:hammer: Fix typos and syntax
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/luxcena-neo-cli.sh | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/bin/luxcena-neo-cli.sh b/bin/luxcena-neo-cli.sh index 60adefd..a2b2336 100755 --- a/bin/luxcena-neo-cli.sh +++ b/bin/luxcena-neo-cli.sh @@ -120,11 +120,11 @@ elif [ "$action" == "stop" ]; then elif [ "$action" == "status" ]; then printf "╭─────────────────────╮\n" printf "│ Service active: " - [ $(systemctl is-active lucxena-neo) -eq "active" ] && printf '\e[32m%s\e[0m │\n' "yes" || printf '\e[31m%s\e[0m │\n' "no" + [[ "$(systemctl is-active lucxena-neo)" == *"active"* ]] && printf '\e[32m%s\e[0m │\n' "yes" || printf '\e[31m%s\e[0m │\n' "no" printf "│ Starts on boot: " - [ $(systemctl is-enabled lucxena-neo) -eq "enabled" ] && printf '\e[32m%s\e[0m │\n' "yes" || printf '\e[31m%s\e[0m │\n' "no" + [[ "$(systemctl is-enabled lucxena-neo)" == *"enabled"* ]] && printf '\e[32m%s\e[0m │\n' "yes" || printf '\e[31m%s\e[0m │\n' "no" printf "│ Has failed: " - [ $(systemctl is-failed lucxena-neo) -eq "failed" ] && printf '\e[32m%s\e[0m │\n' "yes" || printf '\e[31m%s\e[0m │\n' "no" + [[ "$(systemctl is-failed lucxena-neo)" == *"failed"* ]] && printf '\e[32m%s\e[0m │\n' "yes" || printf '\e[31m%s\e[0m │\n' "no" printf "╰─────────────────────╯\n\n" printf '\e[93m%s\e[0m\n' "━━━Service status━━━━━━━━━━━━━━━━━━" @@ -132,7 +132,7 @@ elif [ "$action" == "status" ]; then printf '\e[93m%s\e[0m\n' "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━" elif [ "$action" == "log" ]; then - if [ "$2" == "sevice" ]; then + if [ "$2" == "service" ]; then printf '\e[93m%s\e[0m\n' "━━━Service log (press ctrl+c to exit)━━━━━━━━━━━━━━━━━━" tail -F -n 20 /home/lux-neo/logs/service.log fi |