diff --git a/quickemu b/quickemu index 70ccd39..ab04ac8 100755 --- a/quickemu +++ b/quickemu @@ -1,6 +1,12 @@ #!/usr/bin/env bash export LC_ALL=C +if ((BASH_VERSINFO[0] < 4)) +then + echo "Sorry, you need bash 4.0 or newer to run this script." + exit 1 +fi + function ignore_msrs_always() { # Make sure the host has /etc/modprobe.d if [ -d /etc/modprobe.d ]; then diff --git a/quickget b/quickget index 60eceed..4fe6b97 100755 --- a/quickget +++ b/quickget @@ -23,6 +23,12 @@ # } # 6. Add new OS to the argument parser at the bottom of the script +if ((BASH_VERSINFO[0] < 4)) +then + echo "Sorry, you need bash 4.0 or newer to run this script." + exit 1 +fi + function pretty_name() { local SIMPLE_NAME="" local PRETTY_NAME=""