Remove unbound variables.
This commit is contained in:
parent
3453a0a40e
commit
42314929f5
20
install.sh
20
install.sh
|
@ -9,6 +9,7 @@ exec 2>&1
|
||||||
clear
|
clear
|
||||||
|
|
||||||
# Friendly introduction.
|
# Friendly introduction.
|
||||||
|
echo "0. WELCOME"
|
||||||
echo "Welcome to the Arch Linux installation script!"
|
echo "Welcome to the Arch Linux installation script!"
|
||||||
echo "This script will ERASE ALL DATA on the partition you will choose next!"
|
echo "This script will ERASE ALL DATA on the partition you will choose next!"
|
||||||
echo
|
echo
|
||||||
|
@ -18,7 +19,7 @@ if [[ ! $REPLY =~ ^[Yy]$ ]]
|
||||||
then
|
then
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
echo
|
clear
|
||||||
|
|
||||||
# Selecting disk.
|
# Selecting disk.
|
||||||
echo "1. PARTITIONING"
|
echo "1. PARTITIONING"
|
||||||
|
@ -49,11 +50,14 @@ IFS=' '
|
||||||
array=($dev)
|
array=($dev)
|
||||||
dev="${array[0]}"
|
dev="${array[0]}"
|
||||||
|
|
||||||
|
clear
|
||||||
|
|
||||||
echo "2. ENCRYPTION"
|
echo "2. ENCRYPTION"
|
||||||
echo
|
echo
|
||||||
|
|
||||||
# Setting encryption password.
|
# Setting encryption password.
|
||||||
echo "Choose a strong password for encrypting the primary partition:"
|
echo "Choose a strong password for encrypting the primary partition:"
|
||||||
|
pwcr=""
|
||||||
while [ -z "$pwcr" ]; do
|
while [ -z "$pwcr" ]; do
|
||||||
echo "Please enter a password: "
|
echo "Please enter a password: "
|
||||||
read -s pwfr
|
read -s pwfr
|
||||||
|
@ -70,7 +74,8 @@ else
|
||||||
echo
|
echo
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
echo
|
|
||||||
|
clear
|
||||||
|
|
||||||
echo "3. HOSTNAME"
|
echo "3. HOSTNAME"
|
||||||
echo
|
echo
|
||||||
|
@ -78,13 +83,15 @@ echo
|
||||||
# Setting hostname.
|
# Setting hostname.
|
||||||
echo "Before installing the system, please enter a hostname:"
|
echo "Before installing the system, please enter a hostname:"
|
||||||
read host
|
read host
|
||||||
echo
|
|
||||||
|
clear
|
||||||
|
|
||||||
echo "4. ROOT PASSWORD"
|
echo "4. ROOT PASSWORD"
|
||||||
echo
|
echo
|
||||||
|
|
||||||
# Setting root password.
|
# Setting root password.
|
||||||
echo "Choose a password for the root account:"
|
echo "Choose a password for the root account:"
|
||||||
|
pwr=""
|
||||||
while [ -z "$pwr" ]; do
|
while [ -z "$pwr" ]; do
|
||||||
echo "Please enter a password: "
|
echo "Please enter a password: "
|
||||||
read -s pwfr
|
read -s pwfr
|
||||||
|
@ -101,7 +108,8 @@ else
|
||||||
echo
|
echo
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
echo
|
|
||||||
|
clear
|
||||||
|
|
||||||
echo "4. USER"
|
echo "4. USER"
|
||||||
echo
|
echo
|
||||||
|
@ -113,6 +121,7 @@ echo
|
||||||
|
|
||||||
# Setting user password.
|
# Setting user password.
|
||||||
echo "Also please choose a password for your user:"
|
echo "Also please choose a password for your user:"
|
||||||
|
pwu=""
|
||||||
while [ -z "$pwu" ]; do
|
while [ -z "$pwu" ]; do
|
||||||
echo "Please enter a password: "
|
echo "Please enter a password: "
|
||||||
read -s pwfr
|
read -s pwfr
|
||||||
|
@ -129,7 +138,8 @@ else
|
||||||
echo
|
echo
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
echo
|
|
||||||
|
clear
|
||||||
|
|
||||||
echo "5. INSTALLING SYSTEM.."
|
echo "5. INSTALLING SYSTEM.."
|
||||||
echo
|
echo
|
||||||
|
|
Loading…
Reference in New Issue