fix(SCRIPT): verify docker installed
This commit is contained in:
parent
942a855ffa
commit
e5b2f68fd4
@ -95,6 +95,12 @@ textblockParam() {
|
||||
|
||||
### pre-requisite checks
|
||||
|
||||
# is docker installed?
|
||||
if ! command -v docker > /dev/null; then
|
||||
printf "%s\nCannot find docker... is it installed?\n%s" "$err" "$norm"
|
||||
exit 2
|
||||
fi
|
||||
|
||||
# is user root or in the docker group?
|
||||
if [ ! "$(id -u)" -eq 0 ]; then
|
||||
if ! id -Gn | grep docker >/dev/null; then
|
||||
|
Loading…
Reference in New Issue
Block a user