diff options
-rwxr-xr-x | .local/bin/autobuild.sh | 10 |
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" |