minor improvement on robustness
authorIan Kelling <iank@fsf.org>
Sat, 8 Apr 2023 03:44:29 +0000 (23:44 -0400)
committerIan Kelling <iank@fsf.org>
Sat, 8 Apr 2023 03:44:29 +0000 (23:44 -0400)
src/package-manager-abstractions

index 0f4815a480587f58d3c3d18b731370c679d48b1d..96e4f6db55335e3263e59aa9d702d87bb28bfa8d 100644 (file)
@@ -134,7 +134,7 @@ elif command -v apt-get &>/dev/null; then
       echo pi-nostart "$@"
     fi
     if [[ $EUID == 0 ]]; then
-      dd of=$f 2>/dev/null <<EOF
+      dd of=$f status=none <<EOF
 #!/bin/sh
 exit 101
 EOF
@@ -142,7 +142,7 @@ EOF
       DEBIAN_FRONTEND=noninteractive apt-get -y install --purge --auto-remove "$@" || ret=$?
       rm $f
     else
-      sudo dd of=$f 2>/dev/null <<EOF
+      sudo dd of=$f status=none <<EOF
 #!/bin/sh
 exit 101
 EOF