From 36e5c8e7f1b7b5bc457d5730e16dff56882c04f6 Mon Sep 17 00:00:00 2001 From: aristocratos Date: Tue, 28 Apr 2020 17:53:00 +0200 Subject: [PATCH] move shopt commands to after bash version check --- bashtop | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bashtop b/bashtop index a17d148..ff9a8ea 100755 --- a/bashtop +++ b/bashtop @@ -29,8 +29,6 @@ # limitations under the License. declare -x LC_MESSAGES="C" LC_NUMERIC="C" LC_ALL="" -shopt -qu failglob nullglob -shopt -qs extglob globasciiranges globstar #* Fail if Bash version is below 4.4 bash_version_major="$(echo $BASH_VERSION | cut -d "." -f 1)" @@ -47,6 +45,9 @@ else fi fi +shopt -qu failglob nullglob +shopt -qs extglob globasciiranges globstar + declare -a banner banner_colors banner=(