mirror of
https://github.com/docker/docker-bench-security.git
synced 2025-01-19 00:32:34 +01:00
dont sleep before showing flags
Signed-off-by: Thomas Sjögren <konstruktoid@users.noreply.github.com>
This commit is contained in:
parent
1655718e12
commit
a0f66dba13
1 changed files with 7 additions and 7 deletions
|
@ -52,13 +52,6 @@ yell "# ------------------------------------------------------------------------
|
||||||
# https://benchmarks.cisecurity.org/tools2/docker/CIS_Docker_1.6_Benchmark_v1.0.0.pdf
|
# 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
|
# Get the flags
|
||||||
# If you add an option here, please
|
# If you add an option here, please
|
||||||
# remember to update usage() above.
|
# remember to update usage() above.
|
||||||
|
@ -71,6 +64,13 @@ do
|
||||||
esac
|
esac
|
||||||
done
|
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
|
if [ -z "$logger" ]; then
|
||||||
logger="${myname}.log"
|
logger="${myname}.log"
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue