diff --git a/.github/workflows/shellcheck.yml b/.github/workflows/shellcheck.yml index d13a263..04565c1 100644 --- a/.github/workflows/shellcheck.yml +++ b/.github/workflows/shellcheck.yml @@ -17,6 +17,6 @@ jobs: name: Bash syntax checker runs-on: ubuntu-latest steps: - - uses: actions/checkout@v5 + - uses: actions/checkout@v6 - name: Run ShellCheck uses: ludeeus/action-shellcheck@master diff --git a/easy-arch.sh b/easy-arch.sh index 587f983..a8206e4 100755 --- a/easy-arch.sh +++ b/easy-arch.sh @@ -264,10 +264,11 @@ until keyboard_selector; do : ; done # Choosing the target for the installation. info_print "Available disks for the installation:" +mapfile -t ARR < <(lsblk -dpno NAME,SIZE,MODEL | grep -P "/dev/sd|nvme|vd"); PS3="Please select the number of the corresponding disk (e.g. 1): " -select ENTRY in $(lsblk -dpnoNAME|grep -P "/dev/sd|nvme|vd"); +select ENTRY in "${ARR[@]}"; do - DISK="$ENTRY" + DISK="$($ENTRY | awk '{print $1;}')" info_print "Arch Linux will be installed on the following disk: $DISK" break done