mainly minor fixes
[distro-setup] / btrbk-run
index fc096579f95dd8620782ff4e7dfcf7ecb4d84506..0cdc6256294d97a6fe6e4228f216975b961785dc 100644 (file)
--- a/btrbk-run
+++ b/btrbk-run
@@ -194,8 +194,8 @@ dry_run=false # mostly for testing
 rate_limit=no
 verbose=true; verbose_arg="-l trace"
 force=false
-if [[ $INVOCATION_ID ]]; then
-  # INVOCATION_ID means running as a systemd service. we cant show progress in this case,
+if [[ $PPID == 1 ]]; then
+  # running as a service. we cant show progress in this case,
   # but if we pass the arg, it will insert mbuffer into the command.
   progress_arg=
 else