diff --git a/src/script.sh b/src/script.sh index 9a39e24..5b07c35 100644 --- a/src/script.sh +++ b/src/script.sh @@ -14,8 +14,11 @@ alias mkdir="mkdir -p" alias rm="rm -rf" ## Use GNU grep, busybox grep is not as performant -. "/etc/os-release" -DISTRO="$ID" +DISTRO="" +if [ -f "/etc/os-release" ]; then + . "/etc/os-release" + DISTRO="$ID" +fi check_grep() { if [ -z "$(grep --help | grep 'GNU')" ]; then