Raise error unless interpreter supports globstar
This commit is contained in:
parent
b7a8b090d2
commit
00d3c09ddb
|
@ -1,7 +1,10 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
# TODO: Find a less trashy way to get the next available error code
|
# TODO: Find a less trashy way to get the next available error code
|
||||||
|
if ! shopt -s globstar
|
||||||
shopt -s globstar
|
then
|
||||||
|
echo "Error: This script depends on Bash 4." >&2
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
for i in 1 2
|
for i in 1 2
|
||||||
do
|
do
|
||||||
|
|
Loading…
Reference in New Issue