small changes

This commit is contained in:
mfgbhatti 2022-02-19 21:21:03 +00:00
parent 7bca2c1e94
commit 497f62c438
4 changed files with 7 additions and 8 deletions

View File

@ -48,7 +48,6 @@ cd "$AURHELPER" || exit 0
makepkg -si --noconfirm makepkg -si --noconfirm
cd "$HOME" || exit 0 cd "$HOME" || exit 0
if [[ "$LAYOUT" -eq 1 ]]; then if [[ "$LAYOUT" -eq 1 ]]; then
while IFS= read -r LINE; do while IFS= read -r LINE; do
echo "INSTALLING: $LINE" echo "INSTALLING: $LINE"

View File

@ -33,7 +33,7 @@ copy_logs() {
} }
do_reboot() { do_reboot() {
if [[ "$LVM" -eq 1 || "$LUKS" -eq 1 ]]; then if [[ "$LVM" -eq "1" || "$LUKS" -eq "1" ]]; then
i=0 i=0
while [[ "$i" -le "${#LVM_NAMES[@]}" ]]; do while [[ "$i" -le "${#LVM_NAMES[@]}" ]]; do
umount -l /dev/"$LVM_VG"/"${LVM_NAMES[$i]}" umount -l /dev/"$LVM_VG"/"${LVM_NAMES[$i]}"

View File

@ -116,7 +116,7 @@ set_lvm() {
i=2 i=2
fi fi
while [[ $i -le "$_PART_NUM" ]]; do while [[ $i -le "$_PART_NUM" ]]; do
if [[ "$_PART_NUM" -eq 1 ]]; then if [[ "$_PART_NUM" -eq "1" ]]; then
read -r -p "Enter last partition name [like home]: " _LVM_NAME read -r -p "Enter last partition name [like home]: " _LVM_NAME
_LVM_NAMES+=("$_LVM_NAME") _LVM_NAMES+=("$_LVM_NAME")
fi fi