bug fixes

This commit is contained in:
mfgbhatti 2022-01-28 16:43:12 +00:00
parent 93f0edda79
commit 7bfacadcf6
2 changed files with 9 additions and 4 deletions

View File

@ -1,5 +1,5 @@
#!/usr/bin/env bash
# shellcheck disable=SC1091
# shellcheck disable=SC1091,SC2001
if [[ -f $(pwd)/setup.conf ]]; then
@ -50,7 +50,8 @@ if [[ "$LAYOUT" ]]; then
umount /mnt
mount -o "$MOUNTOPTION",subvol=@ "$PART3" /mnt
for y in "${SUBVOLUMES[@]:1}"; do
for _y in "${SUBVOLUMES[@]:1}"; do
y="$(echo "$_y" | sed 's/@//g')"
mkdir /mnt/"${y}"
done

View File

@ -90,8 +90,12 @@ set_btrfs () {
# An array is a list of values.
NAMES=(@)
for i in "${ARR[@]}"; do
if [[ $i =~ [@] ]]; then
# push values to array
NAMES+=("$i")
NAMES+=("$i")
else
NAMES+=(@"${i}")
fi
done
# Set to config file
set_option "SUBVOLUMES" "(${NAMES[*]})"
@ -509,7 +513,7 @@ make_choice () {
fi
done
}
background_check
# background_check
# write_to_config
clear
logo