diff options
author | Luke Shumaker <lukeshu@lukeshu.com> | 2017-06-20 21:45:09 -0400 |
---|---|---|
committer | Luke Shumaker <lukeshu@lukeshu.com> | 2017-06-20 21:45:09 -0400 |
commit | bb6cc24d4a6a6ae49e46572d5cdf472c663df581 (patch) | |
tree | 2408cd64421d4b62398eac4a120189ff61e8c515 /.local/bin | |
parent | c880b5428d2efab8d733b0e181ebc7ece2ea2df2 (diff) |
Diffstat (limited to '.local/bin')
-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" |