5
0
Fork 0
mirror of https://codeberg.org/Computertruhe/Setup-Skripte.git synced 2025-06-28 03:16:21 +02:00

bzip2 doesn't need sudo as long as the order is correct.

This commit is contained in:
smu 2024-09-15 17:10:19 +02:00
parent bcc25519ce
commit 398bf1150d

View file

@ -75,7 +75,8 @@ fi
case "$IMG" in
*.bz2)
sudo dd if="$IMG" bs=1M status=progress | sudo bzip2 -d > "$DEV"
# alternativ: `bzcat` statt `bzip2 -dc`
bzip2 -dc "$IMG" | sudo dd of="$DEV" bs=1M status=progress
;;
*)
sudo dd if="$IMG" of=$DEV bs=1M status=progress