diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2019-11-16 13:47:52 +0100 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2019-11-16 13:47:52 +0100 |
commit | d9ad035c099c2045d6381b164d1197cc97221d53 (patch) | |
tree | 7d52735d9c47f72433bbc1a48cdf8d198725461f | |
parent | Testing (diff) | |
download | arch-installer-d9ad035c099c2045d6381b164d1197cc97221d53.tar.gz arch-installer-d9ad035c099c2045d6381b164d1197cc97221d53.tar.bz2 arch-installer-d9ad035c099c2045d6381b164d1197cc97221d53.tar.xz arch-installer-d9ad035c099c2045d6381b164d1197cc97221d53.tar.zst arch-installer-d9ad035c099c2045d6381b164d1197cc97221d53.zip |
few shellchecking changes
-rwxr-xr-x | arch-install-UEFI.sh | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/arch-install-UEFI.sh b/arch-install-UEFI.sh index f234551..4f9651a 100755 --- a/arch-install-UEFI.sh +++ b/arch-install-UEFI.sh @@ -52,7 +52,9 @@ fi clear echo "Verifying that your are connected to the Internet, please wait..." -if wget -q --spider https://google.com ; then +wget -q --spider https://google.com +tmpret=$? +if [ $tmpret -ne 0 ]; then clear echo "X=X=X=X=X=X=X ERROR X=X=X=X=X=X=X=X" echo "X X" @@ -341,7 +343,7 @@ echo "# #" echo "#=================================#" echo && echo dd if=/dev/zero of=$drv bs=512 count=1 -cat << EOF | fdisk $drv +sed -e 's/\s*\([\+0-9a-zA-Z \"=#()[]{}<>,:. - \_\/?!@$%^&~`*|]*\).*/\1/' << EOF | fdisk $drv g # create a new GPT partition table n # new partition (/dev/sdx1) 1 # partition number 1 |