iankelling.org
/
git
/
distro-functions
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3379637
)
minor improvement on robustness
author
Ian Kelling
<iank@fsf.org>
Sat, 8 Apr 2023 03:44:29 +0000
(23:44 -0400)
committer
Ian Kelling
<iank@fsf.org>
Sat, 8 Apr 2023 03:44:29 +0000
(23:44 -0400)
src/package-manager-abstractions
patch
|
blob
|
history
diff --git
a/src/package-manager-abstractions
b/src/package-manager-abstractions
index 0f4815a480587f58d3c3d18b731370c679d48b1d..96e4f6db55335e3263e59aa9d702d87bb28bfa8d 100644
(file)
--- a/
src/package-manager-abstractions
+++ b/
src/package-manager-abstractions
@@
-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