unify dns related config, change some dns settings
[distro-setup] / btrbk-run
index 70fc7043ed6520b4d353d8c6df0e4ee72df0f372..93e8dab79322bbbe8e4bea0fb14419718512e4e7 100644 (file)
--- a/btrbk-run
+++ b/btrbk-run
@@ -28,6 +28,7 @@
 [[ $EUID == 0 ]] || exec sudo -E "${BASH_SOURCE[0]}" "$@"
 
 set -e; . /usr/local/lib/bash-bear; set +e
+shopt -s nullglob
 
 usage() {
   cat <<'EOF'
@@ -541,7 +542,10 @@ if ! $pull_reexec && [[ $source ]] && $pulla ; then
   fi
 fi
 
-
+# todo: check if we have no snapshots yet, because I always want to run
+# archive instead of run. Likely, I should give an error unless a cli
+# override is passed. perhaps check-subvol-stale could give the error.
+# see the error message "no snapshots found" in that file.
 if ! $fast; then
   # if our mountpoints are from stale snapshots,
   # it doesn't make sense to do a backup.