aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xbuild-updated-packages.bash5
1 files changed, 3 insertions, 2 deletions
diff --git a/build-updated-packages.bash b/build-updated-packages.bash
index e494f6a..3993cde 100755
--- a/build-updated-packages.bash
+++ b/build-updated-packages.bash
@@ -1,6 +1,7 @@
#!/usr/bin/env bash
-source $(dirname $0)/config.bash
+source "${BASH_SOURCE%/*}"/config.bash
+db_build_script="$(pwd)"/"${BASH_SOURCE%/*}"/db-build
cd "$PKGBUILD_DIR"
@@ -67,7 +68,7 @@ main() {
wait
fi
- $(dirname $0)/db-build
+ "$db_build_script"
}
main "$@"