Wasn't POSIX at the time this script was originally written! Suggested-by: Demi Marie Obenour <demiobenour@gmail.com> Link: https://spectrum-os.org/lists/archives/spectrum-devel/20251127174054.2056835... Signed-off-by: Alyssa Ross <hi@alyssa.is> --- scripts/make-gpt.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/make-gpt.sh b/scripts/make-gpt.sh index 3cae441..e39828b 100755 --- a/scripts/make-gpt.sh +++ b/scripts/make-gpt.sh @@ -1,4 +1,4 @@ -#!/bin/sh -eu +#!/bin/sh -- # # SPDX-FileCopyrightText: 2021-2023 Alyssa Ross <hi@alyssa.is> # SPDX-FileCopyrightText: 2022 Unikie @@ -6,6 +6,8 @@ # # usage: make-gpt.sh GPT_PATH PATH:PARTTYPE[:PARTUUID[:PARTLABEL]]... +set -euo pipefail + ONE_MiB=1048576 # Prints the number of 1MiB blocks required to store the file named base-commit: d76e9b29aea9f31238d07e21db50d3fe6a80da5a -- 2.51.0