From 7922efbfd21547831fc6d5f6b094122c4e36133b Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Fri, 30 Oct 2020 05:00:01 +0100 Subject: Adding one more awk optimizations in container stop command. Signed-off-by: Daniel Baumann --- lib/container/stop | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/container/stop b/lib/container/stop index 5590747..a299cb1 100755 --- a/lib/container/stop +++ b/lib/container/stop @@ -155,7 +155,7 @@ STATE="$(machinectl show ${NAME} 2>&1 | awk -FState= '/^State=/ { print $2 }')" case "${CLEAN}" in true) # Removing overlay mounts - CNT_OVERLAY="$(awk -F= '/^cnt.overlay=/ { print $2 }' ${CONFIG}/${NAME}.conf)" + CNT_OVERLAY="$(awk -Fcnt.overlay= '/^cnt.overlay=/ { print $2 }' ${CONFIG}/${NAME}.conf)" if [ -n "${CNT_OVERLAY}" ] then -- cgit v1.2.3