From b3c008b0e05ba4181a4871535aa4c368f337095d Mon Sep 17 00:00:00 2001 From: Ricardo Pardini Date: Wed, 19 Oct 2022 17:05:40 +0200 Subject: [PATCH] armbian-next: make sure we've coreutils --- lib/single.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/single.sh b/lib/single.sh index c66540b79f..2ec03bb59c 100644 --- a/lib/single.sh +++ b/lib/single.sh @@ -16,6 +16,11 @@ if [[ "${BASH_VERSINFO:-0}" -lt 5 ]]; then exit 50 fi +if [[ -z "$(command -v realpath)" ]]; then + echo "Armbian build scripts require coreutils. Go install it." >&2 + exit 51 +fi + # Users should not start here, but instead use ./compile.sh at the root. if [[ $(basename "$0") == single.sh ]]; then echo "Please use compile.sh to start the build process"