AsahiLinux / docs

Hardware and software docs / wiki
Other
1.78k stars 48 forks source link

the "wipe-linux" script didn't ask me if I wanted to continue #36

Open lou-perret opened 2 years ago

lou-perret commented 2 years ago

Hello !

I wanted to uninstall Asahi Linux (it's awesome, but I don't have enough space on my Mac right now so I will re-install it later) so I followed this

https://github.com/AsahiLinux/docs/wiki/Partitioning-cheatsheet

I ran the "stupidly dangerous script" and it didn't ask for a confirmation. It said "Press enter twice if you really want to continue." but ran anyway without me doing anything. I'm not sure that's the correct behavior.

It didn't break anything on my setup so everything's fine, but maybe this should get fixed ?

Thanks, and keep up the good work ! :)

leifliddy commented 2 years ago

The read commands in that script won't function correctly if you pipe that script to sh If you really want that functionality to work, try either downloading the script first and then running it ie

curl -L https://alx.sh/wipe-linux -O
# or 
curl -L https://alx.sh/wipe-linux > wipe-linux
# and then run it
bash wipe-linux

Or...you could run it like this

bash <(curl -L https://alx.sh/wipe-linux)