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:
parent
bcc25519ce
commit
398bf1150d
1 changed files with 2 additions and 1 deletions
|
@ -75,7 +75,8 @@ fi
|
||||||
|
|
||||||
case "$IMG" in
|
case "$IMG" in
|
||||||
*.bz2)
|
*.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
|
sudo dd if="$IMG" of=$DEV bs=1M status=progress
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue