summaryrefslogtreecommitdiffstats
path: root/lib/container/console
diff options
context:
space:
mode:
authorKatharina Drexel <katharina.drexel@bfh.ch>2020-10-08 15:12:27 +0000
committerDaniel Baumann <daniel.baumann@open-infrastructure.net>2020-10-30 04:04:17 +0000
commit795f0c9d4e0bd3f70730ad80a1c7fca94184c996 (patch)
tree47e29fc239c6b38b7a289b922ce72e6bb7b20923 /lib/container/console
parentAdding overlay options to debconf script. (diff)
downloadcompute-tools-795f0c9d4e0bd3f70730ad80a1c7fca94184c996.tar.xz
compute-tools-795f0c9d4e0bd3f70730ad80a1c7fca94184c996.zip
Adding awk optimizations in configuration file handling.
Signed-off-by: Katharina Drexel <katharina.drexel@bfh.ch>
Diffstat (limited to 'lib/container/console')
-rwxr-xr-xlib/container/console2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/container/console b/lib/container/console
index 0628a9d..2a41bf5 100755
--- a/lib/container/console
+++ b/lib/container/console
@@ -81,7 +81,7 @@ then
exit 1
fi
-STATE="$(machinectl show ${NAME} 2>&1 | awk -F= '/^State=/ { print $2 }')"
+STATE="$(machinectl show ${NAME} 2>&1 | awk -FState= '/^State=/ { print $2 }')"
case "${STATE}" in
running)