summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/inject.sh2
-rwxr-xr-xmk3
2 files changed, 3 insertions, 2 deletions
diff --git a/include/inject.sh b/include/inject.sh
index f1ecb0d5..6aceb52c 100644
--- a/include/inject.sh
+++ b/include/inject.sh
@@ -1,4 +1,4 @@
-# SPD-License-Identifier: GPL-3.0-only
+# SPDX-License-Identifier: GPL-3.0-only
# Copyright (c) 2022 Caleb La Grange <thonkpeasant@protonmail.com>
# Copyright (c) 2022 Ferass El Hafidi <vitali64pmemail@protonmail.com>
# Copyright (c) 2023-2025 Leah Rowe <leah@libreboot.org>
diff --git a/mk b/mk
index 55f67a92..dcf135a1 100755
--- a/mk
+++ b/mk
@@ -326,7 +326,8 @@ check_gnu_path()
command -v "$1" 1>/dev/null || err "Host '$1' unavailable"
eval "`setvars "" gccver gccfull gnatver gnatfull gccdir gnatdir`"
- x_ gnu_setver "$1" "$1" && gnu_setver "$2" "$2" || :
+ x_ gnu_setver "$1" "$1" || err "Command '$1' unavailable."
+ gnu_setver "$2" "$2" || :
eval "[ -z \"\$$1ver\" ] && err \"Cannot detect host '$1' version\""
[ "$gnatfull" = "$gccfull" ] && return 0