diff options
author | Jesús <heckyel@hyperbola.info> | 2022-05-24 23:09:19 +0800 |
---|---|---|
committer | Jesús <heckyel@hyperbola.info> | 2022-05-24 23:09:19 +0800 |
commit | e451619c3798d1edebc23dcb862e0f3a862ec886 (patch) | |
tree | 9f146b65112088f3a20d5d361e2225b5e77bd885 /hyperfi | |
parent | d142a77e0d83aeee1141e55eae44e24aedcacde8 (diff) | |
download | hyperfi-e451619c3798d1edebc23dcb862e0f3a862ec886.tar.lz hyperfi-e451619c3798d1edebc23dcb862e0f3a862ec886.tar.xz hyperfi-e451619c3798d1edebc23dcb862e0f3a862ec886.zip |
shellcheck step 9
Diffstat (limited to 'hyperfi')
-rw-r--r-- | hyperfi | 62 |
1 files changed, 32 insertions, 30 deletions
@@ -814,36 +814,38 @@ installbase(){ done options=() - if [[ "${fspkgs}" == *"dosfstools"* ]]; then - options+=("dosfstools" "" on) - else - options+=("dosfstools" "" off) - fi - if [[ "${fspkgs}" == *"btrfs-progs"* ]]; then - options+=("btrfs-progs" "" on) - else - options+=("btrfs-progs" "" off) - fi - if [[ "${fspkgs}" == *"xfsprogs"* ]]; then - options+=("xfsprogs" "" on) - else - options+=("xfsprogs" "" off) - fi - if [[ "${fspkgs}" == *"f2fs-tools"* ]]; then - options+=("f2fs-tools" "" on) - else - options+=("f2fs-tools" "" off) - fi - if [[ "${fspkgs}" == *"jfsutils"* ]]; then - options+=("jfsutils" "" on) - else - options+=("jfsutils" "" off) - fi - if [[ "${fspkgs}" == *"reiserfsprogs"* ]]; then - options+=("reiserfsprogs" "" on) - else - options+=("reiserfsprogs" "" off) - fi + for value in "${fspkgs[@]}"; do + if [[ "${value}" == *"dosfstools"* ]]; then + options+=("dosfstools" "" on) + else + options+=("dosfstools" "" off) + fi + if [[ "${value}" == *"btrfs-progs"* ]]; then + options+=("btrfs-progs" "" on) + else + options+=("btrfs-progs" "" off) + fi + if [[ "${value}" == *"xfsprogs"* ]]; then + options+=("xfsprogs" "" on) + else + options+=("xfsprogs" "" off) + fi + if [[ "${value}" == *"f2fs-tools"* ]]; then + options+=("f2fs-tools" "" on) + else + options+=("f2fs-tools" "" off) + fi + if [[ "${value}" == *"jfsutils"* ]]; then + options+=("jfsutils" "" on) + else + options+=("jfsutils" "" off) + fi + if [[ "${value}" == *"reiserfsprogs"* ]]; then + options+=("reiserfsprogs" "" on) + else + options+=("reiserfsprogs" "" off) + fi + done options+=("lvm2" "" off) options+=("dmraid" "" off) sel=$(whiptail --backtitle "${apptitle}" --title "${txtinstallhyperbolafilesystems}" --checklist "" 0 0 0 \ |