mirror of
https://github.com/koalaman/shellcheck
synced 2025-07-06 04:51:37 -07:00
Raise error unless interpreter supports globstar
This commit is contained in:
parent
b7a8b090d2
commit
00d3c09ddb
1 changed files with 5 additions and 2 deletions
|
@ -1,7 +1,10 @@
|
|||
#!/bin/bash
|
||||
# TODO: Find a less trashy way to get the next available error code
|
||||
|
||||
shopt -s globstar
|
||||
if ! shopt -s globstar
|
||||
then
|
||||
echo "Error: This script depends on Bash 4." >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
for i in 1 2
|
||||
do
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue