Force the output to be in lowercase

This commit is contained in:
Kay0u 2021-12-12 20:06:41 +01:00
parent bafedc8927
commit ff0dcc2207
No known key found for this signature in database
GPG key ID: AE1DCADB6415A156

View file

@ -195,7 +195,7 @@ _LXC_START_AND_WAIT() {
CLEAN_SWAPFILES() {
# Restart it if needed
if [ "$(lxc info $LXC_NAME | grep Status | awk '{print $2}')" != "RUNNING" ]; then
if [ "$(lxc info $LXC_NAME | grep Status | awk '{print tolower($2)}')" != "running" ]; then
lxc start $LXC_NAME
_LXC_START_AND_WAIT $LXC_NAME
fi