Skip to content

Commit 4aaecb9

Browse files
ismailsunnim-kuhn
authored andcommitted
Add bash version checking for sip_include.sh.
1 parent 6cb9fa8 commit 4aaecb9

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

scripts/sip_include.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,12 @@
1515
###########################################################################
1616
set -e
1717

18+
if [ $BASH_VERSINFO -lt 4 ]; then
19+
echo "You need bash version 4+ to run this script."
20+
echo "Your bash version is $BASH_VERSION"
21+
exit 1
22+
fi
23+
1824
DIR=$(git rev-parse --show-toplevel)
1925

2026
pushd ${DIR} > /dev/null

0 commit comments

Comments
 (0)