Fix typos

This commit is contained in:
Eric Renfro 2024-08-01 15:41:14 -04:00
parent f1476e18a8
commit cf6476b4aa
Signed by: psi-jack
SSH key fingerprint: SHA256:1TKB8Z257L8EHK8GWNxKgMhD8a+FAR+f+j3nnlcuNVM

View file

@ -23,7 +23,7 @@ declare -rA SUBVOLS_DEFAULT=(
["@snapshots"]=".snapshots" ["@snapshots"]=".snapshots"
) )
gunction show_help() { function show_help() {
echo "Usage: $0 <disk> [<options>...]" echo "Usage: $0 <disk> [<options>...]"
echo "" echo ""
echo "Positional Arguments:" echo "Positional Arguments:"
@ -73,6 +73,7 @@ function prepare_disk() {
#mkfs.vfat -F 32 -n "EFI" "$RootPart" #mkfs.vfat -F 32 -n "EFI" "$RootPart"
#mkfs.btrfs -L "System" "$RootPart" #mkfs.btrfs -L "System" "$RootPart"
fi fi
fi
} }
function create_luks() { function create_luks() {
@ -166,6 +167,7 @@ function prepare_target() {
if [[ "$COMPRESSION" ]]; then if [[ "$COMPRESSION" ]]; then
compopt=",compress=zstd:3" compopt=",compress=zstd:3"
fi
${cmd} mount -o noatime,space_cache=v2${compopt},ssd,subvol=@ "$rootmount" /mnt/gentoo ${cmd} mount -o noatime,space_cache=v2${compopt},ssd,subvol=@ "$rootmount" /mnt/gentoo
@ -412,7 +414,7 @@ RootDisk="$1"
if [[ ! -b "$RootDisk" ]]; then if [[ ! -b "$RootDisk" ]]; then
echo "ERROR: Invalid parameters. See --help for help" echo "ERROR: Invalid parameters. See --help for help"
exit 3 exit 3
elif else
if [[ "$ENCRYPTION" ]]; then if [[ "$ENCRYPTION" ]]; then
diskdev="${RootDisk##*/}" diskdev="${RootDisk##*/}"
if [[ "$diskdev" =~ ^nvme.* ]]; then if [[ "$diskdev" =~ ^nvme.* ]]; then