shellcheck, better automated upgrades
[distro-setup] / btrbk-run
index 7dad03a5c270284b455397c1c76726d2786ce3ed..48550db1a4b2793418501cbfa32a1b234d538994 100644 (file)
--- a/btrbk-run
+++ b/btrbk-run
@@ -17,7 +17,7 @@
 # todo: if we cancel in the middle of a btrfs send, then run again immediately, the received subvolume doesn't get a Received UUID: field, and we won't mount it. Need to figure out a solution that will fix this.
 
 
-[[ $EUID == 0 ]] || exec sudo -E "$BASH_SOURCE" "$@"
+[[ $EUID == 0 ]] || exec sudo -E "${BASH_SOURCE[0]}" "$@"
 
 source /usr/local/lib/err