diff --git a/2-user.sh b/2-user.sh index 0e060c1..1eefd9f 100755 --- a/2-user.sh +++ b/2-user.sh @@ -48,11 +48,10 @@ cd "$AURHELPER" || exit 0 makepkg -si --noconfirm cd "$HOME" || exit 0 - if [[ "$LAYOUT" -eq 1 ]]; then while IFS= read -r LINE; do - echo "INSTALLING: $LINE" - install_aur "$LINE" + echo "INSTALLING: $LINE" + install_aur "$LINE" done <~/ArchTitus/pkg-files/aur-pkgs.txt pip install konsave diff --git a/3-post-setup.sh b/3-post-setup.sh index fc53b6c..ab26afe 100755 --- a/3-post-setup.sh +++ b/3-post-setup.sh @@ -63,4 +63,4 @@ rm -r /root/ArchTitus rm -r /home/"$USERNAME"/ArchTitus # Replace in the same state -cd "$(pwd)" || exit 0 \ No newline at end of file +cd "$(pwd)" || exit 0 diff --git a/archtitus.sh b/archtitus.sh index 04f708f..b626338 100755 --- a/archtitus.sh +++ b/archtitus.sh @@ -32,8 +32,8 @@ copy_logs() { cp "$LOG" "$MOUNTPOINT"/var/log/archtitus.log } -do_reboot () { - if [[ "$LVM" -eq 1 || "$LUKS" -eq 1 ]]; then +do_reboot() { + if [[ "$LVM" -eq "1" || "$LUKS" -eq "1" ]]; then i=0 while [[ "$i" -le "${#LVM_NAMES[@]}" ]]; do umount -l /dev/"$LVM_VG"/"${LVM_NAMES[$i]}" @@ -47,7 +47,7 @@ do_reboot () { end() { REBOOT="true" copy_logs - for (( i = 15; i >= 1; i-- )); do + for ((i = 15; i >= 1; i--)); do read -r -s -n 1 -t 1 -p "Rebooting in $i seconds... Press Esc key to abort or press R key to reboot now."$'\n' KEY CODE="$?" if [ "$CODE" != "0" ]; then diff --git a/startup.sh b/startup.sh index bacc03a..e5c33d2 100644 --- a/startup.sh +++ b/startup.sh @@ -116,7 +116,7 @@ set_lvm() { i=2 fi 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 _LVM_NAMES+=("$_LVM_NAME") fi