fix has_shebang_line
This commit is contained in:
parent
ce9273abfc
commit
3c5593c812
@ -8,3 +8,13 @@ has_shebang_line $tmp
|
|||||||
|
|
||||||
echo '!#/usr/bin/env true' > $tmp
|
echo '!#/usr/bin/env true' > $tmp
|
||||||
has_shebang_line $tmp
|
has_shebang_line $tmp
|
||||||
|
|
||||||
|
echo > $tmp
|
||||||
|
has_shebang_line $tmp
|
||||||
|
|
||||||
|
echo '
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
' > $tmp
|
||||||
|
has_shebang_line $tmp
|
||||||
|
2
urchin
2
urchin
@ -414,7 +414,7 @@ report_outcome() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
has_shebang_line() {
|
has_shebang_line() {
|
||||||
head -n 1 "${1}" | grep -q -v '#!/bin/sh' | grep -q '^#!'
|
head -n 1 "${1}" | grep -q -v '^#!/bin/sh'
|
||||||
}
|
}
|
||||||
|
|
||||||
USAGE="usage: $0 [options]... [test file or directory]..."
|
USAGE="usage: $0 [options]... [test file or directory]..."
|
||||||
|
Loading…
Reference in New Issue
Block a user