aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Packham <judge.packham@gmail.com>2024-04-23 19:13:19 +1200
committerChris Packham <judge.packham@gmail.com>2024-04-24 18:13:48 +1200
commit6c54b503369c56a23ac9059bfad351e6b9977057 (patch)
tree487f6018adb052d2871e6ec20db6062609644c96
parent9a8e81eb4e28a1fc9271806f1af1fbac2da2e385 (diff)
downloadcrosstool-ng-6c54b503369c56a23ac9059bfad351e6b9977057.tar.gz
crosstool-ng-6c54b503369c56a23ac9059bfad351e6b9977057.tar.bz2
crosstool-ng-6c54b503369c56a23ac9059bfad351e6b9977057.zip
scripts/functions: Use CT_Abort when paths.sh is missing
Code added to deal with --enable-local used the non-existent CT_Error instead of CT_Abort. Use the correct function so the build aborts with a useful error message. Fixes #2141 Signed-off-by: Chris Packham <judge.packham@gmail.com>
-rw-r--r--scripts/functions2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/functions b/scripts/functions
index 841dce2c..a86c528f 100644
--- a/scripts/functions
+++ b/scripts/functions
@@ -2503,7 +2503,7 @@ if [ -r "${CT_LIB_DIR}/paths.sh" ]; then
elif [ -r "${CT_TOP_DIR}/paths.sh" ]; then
paths_sh_location="${CT_TOP_DIR}/paths.sh"
else
- CT_Error "Not found: paths.sh"
+ CT_Abort "Not found: paths.sh"
fi
. "${paths_sh_location}"