mirror of
https://gitlab.archlinux.org/tpowa/archboot.git
synced 2024-09-20 03:50:37 +02:00
fix shellcheck
This commit is contained in:
parent
03a34d9711
commit
2d934308c9
1 changed files with 2 additions and 0 deletions
|
@ -131,6 +131,7 @@ select_btrfs_raid_devices () {
|
|||
# select the second device to use, no missing option available!
|
||||
: >/tmp/.btrfs-devices
|
||||
echo "${BTRFS_DEVICE}" >>/tmp/.btrfs-devices
|
||||
#shellcheck disable=SC2001,SC2086
|
||||
BTRFS_PARTS=$(echo ${PARTS} | sed -e "s#${BTRFS_DEVICE}\ _##g")
|
||||
RAIDNUMBER=2
|
||||
#shellcheck disable=SC2086
|
||||
|
@ -146,6 +147,7 @@ select_btrfs_raid_devices () {
|
|||
[[ "${RAIDNUMBER}" -ge 4 && "${BTRFS_LEVEL}" = "raid5" ]] && BTRFS_DONE="DONE _"
|
||||
[[ "${RAIDNUMBER}" -ge 5 && "${BTRFS_LEVEL}" = "raid10" || "${BTRFS_LEVEL}" = "raid6" ]] && BTRFS_DONE="DONE _"
|
||||
# clean loop from used partition and options
|
||||
#shellcheck disable=SC2001,SC2086
|
||||
BTRFS_PARTS=$(echo ${BTRFS_PARTS} | sed -e "s#${BTRFS_PART}\ _##g")
|
||||
# add more devices
|
||||
#shellcheck disable=SC2086
|
||||
|
|
Loading…
Reference in a new issue