From fab9b9953e44bfaf7245269750757781620b8adb Mon Sep 17 00:00:00 2001 From: Alejandro R Mosteo Date: Fri, 24 Jun 2022 13:51:58 +0200 Subject: [PATCH] Ensure aliases work within non-interactive shell (#562) Co-authored-by: GHA --- scripts/gh-build-crate.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/gh-build-crate.sh b/scripts/gh-build-crate.sh index dd545945..62fbb895 100755 --- a/scripts/gh-build-crate.sh +++ b/scripts/gh-build-crate.sh @@ -6,6 +6,9 @@ trap 'echo "Interrupted" >&2 ; exit 1' INT set -o errexit set -o nounset +# Required for aliases to work in non-interactive scripts +shopt -s expand_aliases + # Ensure all alr runs are non-interactive and able to output unexpected errors alias alr="alr -d -n"