mirror of
https://gitlab.archlinux.org/tpowa/archboot.git
synced 2024-09-19 11:30:37 +02:00
change order
This commit is contained in:
parent
2a76bdb828
commit
3bbb151378
1 changed files with 6 additions and 6 deletions
|
@ -21,14 +21,14 @@ if ! [[ ${UID} -eq 0 ]]; then
|
|||
echo "ERROR: Please run as root user!"
|
||||
exit 1
|
||||
fi
|
||||
#shellcheck disable=SC2068
|
||||
for i in $@; do
|
||||
echo -e "\e[1mCleaning blockdevice ${i}...\e[m"
|
||||
echo -e "\e[1mCleaning blockdevice(s) $*...\e[m"
|
||||
echo -e "\e[91mWARNING: 10 seconds for hitting CTRL+C to stop the process on ${i} now! \e[m"
|
||||
sleep 10
|
||||
echo -e "\e[1mSTEP 1/2:\e[m Cleaning filesystem signatures..."
|
||||
#shellcheck disable=SC2068
|
||||
for i in $@; do
|
||||
echo -e "\e[1mSTEP 1/2:\e[m Cleaning ${i} filesystem signatures..."
|
||||
wipefs -f -a "${i}"
|
||||
echo -e "\e[1mSTEP 2/2:\e[m Cleaning partition table..."
|
||||
echo -e "\e[1mSTEP 2/2:\e[m Cleaning ${i} partition table..."
|
||||
dd if=/dev/zero of="${i}" bs=1M count=10
|
||||
echo -e "\e[1mFinished ${i}.\e[m"
|
||||
done
|
||||
|
|
Loading…
Reference in a new issue