mainly minor fixes
[distro-setup] / btrfsmaint
index f50f5494e2aba068fb68aa2bd51f748b87d358a7..3eb4759ad104029c54613c754a2980116ae95812 100755 (executable)
@@ -29,7 +29,7 @@ set -e; . /usr/local/lib/bash-bear; set +e
 # inspired from
 # https://github.com/kdave/btrfsmaintenance
 
-if [[ $INVOCATION_ID ]]; then
+if [[ $PPID == 1 ]]; then
   err-cleanup() {
     exim -odf -i root <<EOF
 From: root@$(hostname -f)