From 594dfedc24c6d220567c1dc2dd601aaf419a2370 Mon Sep 17 00:00:00 2001 From: Suikan <26223147+suikan4github@users.noreply.github.com> Date: Sat, 3 Jul 2021 08:32:58 +0900 Subject: [PATCH] Add shellcheck disable to suppress --- script/lib/pre_install_common.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/script/lib/pre_install_common.sh b/script/lib/pre_install_common.sh index bb61fb9..97fd970 100644 --- a/script/lib/pre_install_common.sh +++ b/script/lib/pre_install_common.sh @@ -16,11 +16,13 @@ function pre_install_common() { sgdisk --zap-all "${DEV}" # Create EFI partition and format it echo "...Creating an EFI partition on \"${DEV}\"." + # shellcheck disable=SC2140 sgdisk --new="${EFIPARTITION}":0:+"${EFISIZE}" --change-name="${EFIPARTITION}":"EFI System" --typecode="${EFIPARTITION}":ef00 "${DEV}" echo "...Formatting the EFI parttion." mkfs.vfat -F 32 -n EFI-SP "${DEV}${EFIPARTITION}" # Create Linux partition echo "...Creating a Linux partition on ${DEV}." + # shellcheck disable=SC2140 sgdisk --new="${CRYPTPARTITION}":0:0 --change-name="${CRYPTPARTITION}":"Linux LUKS" --typecode="${CRYPTPARTITION}":8309 "${DEV}" # Then print them sgdisk --print "${DEV}"