mirror of
https://github.com/mailcow/mailcow-dockerized.git
synced 2026-09-01 16:37:10 +00:00
Update _modules/scripts/core.sh
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
@@ -17,7 +17,7 @@ caller="${BASH_SOURCE[1]##*/}"
|
|||||||
|
|
||||||
get_installed_tools(){
|
get_installed_tools(){
|
||||||
for bin in openssl curl docker git awk sha1sum grep cut jq; do
|
for bin in openssl curl docker git awk sha1sum grep cut jq; do
|
||||||
if [[ -z $(which ${bin}) ]]; then echo "Cannot find ${bin}, exiting..."; exit 1; fi
|
if [[ -z $(command -v ${bin}) ]]; then echo "Cannot find ${bin}, exiting..."; exit 1; fi
|
||||||
done
|
done
|
||||||
|
|
||||||
if grep --help 2>&1 | head -n 1 | grep -q -i "busybox"; then echo -e "${LIGHT_RED}BusyBox grep detected, please install gnu grep, \"apk add --no-cache --upgrade grep\"${NC}"; exit 1; fi
|
if grep --help 2>&1 | head -n 1 | grep -q -i "busybox"; then echo -e "${LIGHT_RED}BusyBox grep detected, please install gnu grep, \"apk add --no-cache --upgrade grep\"${NC}"; exit 1; fi
|
||||||
|
|||||||
Reference in New Issue
Block a user