From c56fbb98782d20d8da15cd36eccb94d52fa5a0d6 Mon Sep 17 00:00:00 2001 From: i-c-u-p <96894903+i-c-u-p@users.noreply.github.com> Date: Mon, 25 Apr 2022 09:44:31 +0000 Subject: [PATCH] use nested brace expansion when making subvol dirs also removed unnecessary / --- easy-arch.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/easy-arch.sh b/easy-arch.sh index 0b357c0..93edca7 100755 --- a/easy-arch.sh +++ b/easy-arch.sh @@ -263,7 +263,7 @@ done umount /mnt print "Mounting the newly created subvolumes." mount -o ssd,noatime,compress-force=zstd:3,discard=async,subvol=@ $BTRFS /mnt -mkdir -p /mnt/{home,root,srv,.snapshots,/var/log,/var/cache/pacman/pkg,boot} +mkdir -p /mnt/{home,root,srv,.snapshots,var/{log,cache/pacman/pkg},boot} for subvol in ${subvols[@]:2}; do # ":2" excludes first two subvols (@var_pkgs and @snapshots) from loop mount -o ssd,noatime,compress-force=zstd:3,discard=async,subvol=@$subvol $BTRFS /mnt/$(sed 's,_,/,g' <<< $subvol) done