Commit 41a50cbc authored by Tobias Powalowski's avatar Tobias Powalowski
Browse files

format changes

parent 79bc0605
......@@ -114,7 +114,7 @@ btrfs_raid_level() {
DIALOG --msgbox "BTRFS DATA RAID OPTIONS:\n\nRAID5/6 are for testing purpose. Use with extreme care!\n\nIf you don't need this feature select NONE." 0 0
while [[ "${BTRFS_RAID_FINISH}" != "DONE" ]]; do
#shellcheck disable=SC2086
DIALOG --menu "Select the raid data level you want to use" 14 50 10 ${BTRFS_RAIDLEVELS} 2>"${ANSWER}" || return 1
DIALOG --menu "Select the raid data level you want to use:" 14 50 10 ${BTRFS_RAIDLEVELS} 2>"${ANSWER}" || return 1
BTRFS_LEVEL=$(cat "${ANSWER}")
if [[ "${BTRFS_LEVEL}" = "NONE" ]]; then
echo "${BTRFS_DEVICE}" >>/tmp/.btrfs-devices
......@@ -135,7 +135,7 @@ select_btrfs_raid_devices () {
BTRFS_PARTS=$(echo ${PARTS} | sed -e "s#${BTRFS_DEVICE}\ _##g")
RAIDNUMBER=2
#shellcheck disable=SC2086
DIALOG --menu "Select device ${RAIDNUMBER}" 13 50 10 ${BTRFS_PARTS} 2>"${ANSWER}" || return 1
DIALOG --menu "Select device ${RAIDNUMBER}:" 13 50 10 ${BTRFS_PARTS} 2>"${ANSWER}" || return 1
BTRFS_PART=$(cat "${ANSWER}")
echo "${BTRFS_PART}" >>/tmp/.btrfs-devices
while [[ "${BTRFS_PART}" != "DONE" ]]; do
......@@ -151,7 +151,7 @@ select_btrfs_raid_devices () {
BTRFS_PARTS=$(echo ${BTRFS_PARTS} | sed -e "s#${BTRFS_PART}\ _##g")
# add more devices
#shellcheck disable=SC2086
DIALOG --menu "Select device ${RAIDNUMBER}" 13 50 10 ${BTRFS_PARTS} ${BTRFS_DONE} 2>"${ANSWER}" || return 1
DIALOG --menu "Select device ${RAIDNUMBER}:" 13 50 10 ${BTRFS_PARTS} ${BTRFS_DONE} 2>"${ANSWER}" || return 1
BTRFS_PART=$(cat "${ANSWER}")
[[ "${BTRFS_PART}" = "DONE" ]] && break
echo "${BTRFS_PART}" >>/tmp/.btrfs-devices
......@@ -233,7 +233,7 @@ choose_btrfs_subvolume () {
done
if [[ -n "${SUBVOLUMES}" ]]; then
#shellcheck disable=SC2086
DIALOG --menu "Select the subvolume to mount" 21 50 13 ${SUBVOLUMES} 2>"${ANSWER}" || return 1
DIALOG --menu "Select the subvolume to mount:" 21 50 13 ${SUBVOLUMES} 2>"${ANSWER}" || return 1
BTRFS_SUBVOLUME=$(cat "${ANSWER}")
else
if [[ "${SUBVOLUMES_DETECTED}" = "yes" ]]; then
......@@ -275,7 +275,7 @@ btrfs_compress() {
fi
if [[ "${BTRFS_COMPRESS}" = "compress" ]]; then
#shellcheck disable=SC2086
DIALOG --menu "Select the compression method you want to use" 21 50 9 ${BTRFS_COMPRESSLEVELS} 2>"${ANSWER}" || return 1
DIALOG --menu "Select the compression method you want to use:" 21 50 9 ${BTRFS_COMPRESSLEVELS} 2>"${ANSWER}" || return 1
BTRFS_COMPRESS="compress=$(cat "${ANSWER}")"
fi
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment