fix: Fix flag ordering in set calls in scripts (#99)

The README for scripts has an incorrect use of the `set`. Where it says
to use:

	set -oue pipefail

it should be:

	set -euo pipefail

since `pipefail` is an option consumed by `set -o`.

More information: https://www.gnu.org/software/bash/manual/html_node/The-Set-Builtin.html
This commit is contained in:
Nick Saika 2024-01-16 01:12:08 -05:00 committed by GitHub
parent e530978bb4
commit 17bacbe3da
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
24 changed files with 25 additions and 25 deletions

View file

@ -1,5 +1,5 @@
#!/usr/bin/env bash
set -oue pipefail
set -euo pipefail
NAME=$1
FORMAT=$2

View file

@ -1,5 +1,5 @@
#!/usr/bin/env bash
set -oue pipefail
set -euo pipefail
export FONTS_MODULE_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"

View file

@ -1,5 +1,5 @@
#!/usr/bin/env bash
set -oue pipefail
set -euo pipefail
mapfile -t FONTS <<< "$@"
URL="https://fonts.google.com/download?family="

View file

@ -1,5 +1,5 @@
#!/usr/bin/env bash
set -oue pipefail
set -euo pipefail
mapfile -t FONTS <<< "$@"
URL="https://github.com/ryanoasis/nerd-fonts/releases/latest/download/"