summaryrefslogtreecommitdiff
path: root/.local/bin
diff options
context:
space:
mode:
Diffstat (limited to '.local/bin')
-rwxr-xr-x.local/bin/autobuild.sh10
1 files changed, 8 insertions, 2 deletions
diff --git a/.local/bin/autobuild.sh b/.local/bin/autobuild.sh
index 307f20f..3b2c652 100755
--- a/.local/bin/autobuild.sh
+++ b/.local/bin/autobuild.sh
@@ -44,8 +44,14 @@ main() {
# Configuration parsing ################################################
. "$(librelib conf)"
- load_files libretools
- check_vars libretools WORKDIR ABSLIBRERECV ABSLIBRESEND
+ if type load_conf &>/dev/null; then
+ # new way
+ load_conf libretools.conf WORKDIR ABSLIBRERECV ABSLIBRESEND
+ else
+ # old way
+ load_files libretools
+ check_vars libretools WORKDIR ABSLIBRERECV ABSLIBRESEND
+ fi
# Lock to pevent conflicting runs ######################################
lock 9 "${WORKDIR}/autobuilder.lock" "Waiting for previous run of %q to finish" "$0"