move shopt commands to after bash version check

pull/68/head
aristocratos 2020-04-28 17:53:00 +02:00
parent 41f40b5938
commit 36e5c8e7f1
1 changed files with 3 additions and 2 deletions

View File

@ -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=(