From a0f66dba13be8a3b01d553b5f4eae5ae649810b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20Sj=C3=B6gren?= Date: Sat, 5 Sep 2015 15:51:51 +0200 Subject: [PATCH] dont sleep before showing flags MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Thomas Sjögren --- docker-bench-security.sh | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/docker-bench-security.sh b/docker-bench-security.sh index c08f646..55fe677 100755 --- a/docker-bench-security.sh +++ b/docker-bench-security.sh @@ -52,13 +52,6 @@ yell "# ------------------------------------------------------------------------ # https://benchmarks.cisecurity.org/tools2/docker/CIS_Docker_1.6_Benchmark_v1.0.0.pdf # ------------------------------------------------------------------------------" -# Warn if not root -ID=$(id -u) -if [ "x$ID" != "x0" ]; then - warn "Some tests might require root to run" - sleep 3 -fi - # Get the flags # If you add an option here, please # remember to update usage() above. @@ -71,6 +64,13 @@ do esac done +# Warn if not root +ID=$(id -u) +if [ "x$ID" != "x0" ]; then + warn "Some tests might require root to run" + sleep 3 +fi + if [ -z "$logger" ]; then logger="${myname}.log" fi