From 0b03915e39faffb68ce123c6f90ed5d802c65528 Mon Sep 17 00:00:00 2001 From: Achim Gsell Date: Mon, 27 May 2019 17:50:14 +0200 Subject: [PATCH] source libpbuild before parsing the arguments --- Pmodules/modbuild.in | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Pmodules/modbuild.in b/Pmodules/modbuild.in index 9b71194..96e5238 100755 --- a/Pmodules/modbuild.in +++ b/Pmodules/modbuild.in @@ -24,6 +24,9 @@ source libstd.bash || { echo "Oops: library '$_' cannot be loaded!" 1>&2; exit 3; } +source libpbuild.bash || \ + std::die 3 "Oops: Cannot source library -- '$_'" + # save arguments, (still) required for building dependencies declare -r ARGS="$@" @@ -376,9 +379,6 @@ else fi source "${build_config}" || \ std::die 3 "Oops: Cannot source configuration file -- '${build_config}'" -source libpbuild.bash || \ - std::die 3 "Oops: Cannot source library -- '$_'" - declare -r BUILD_SCRIPT declare -r BUILDBLOCK_DIR