From d84346e7704293b097bf7d8282a22a9e81c2f7e5 Mon Sep 17 00:00:00 2001 From: Tommaso Chiti Date: Sat, 8 Oct 2022 09:49:36 +0200 Subject: [PATCH] Fix issue with GitHub Action --- easy-arch.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/easy-arch.sh b/easy-arch.sh index f4fe7de..c36abbd 100755 --- a/easy-arch.sh +++ b/easy-arch.sh @@ -1,5 +1,8 @@ #!/usr/bin/env -S bash -e +# Fixing annoying issue that breaks GitHub Actions +# shellcheck disable=SC2001 + # Cleaning the TTY. clear @@ -214,7 +217,7 @@ locale_selector () { '/') sed -E '/^# +|^#$/d;s/^#| *$//g;s/ .*/ (Charset:&)/' /etc/locale.gen | less -M clear return 1;; - *) if ! grep -q "^#\?$(sed 's/[].*[]/\\&/g' <<< $locale) " /etc/locale.gen; then + *) if ! grep -q "^#\?$(sed 's/[].*[]/\\&/g' <<< "$locale") " /etc/locale.gen; then error_print "The specified locale doesn't exist or isn't supported." return 1 fi