mirror of
https://github.com/servo/servo.git
synced 2025-08-04 13:10:20 +01:00
Add lint for [
instead of [[
in shells scripts
This commit is contained in:
parent
9231ca1c69
commit
f07d8f188a
5 changed files with 17 additions and 8 deletions
|
@ -8,3 +8,7 @@ set -o nounset
|
|||
echo "hello world"
|
||||
some_var=`echo "command substitution"`
|
||||
another_var="$some_var"
|
||||
if [ -z "${some_var}" ]; then
|
||||
echo "should have used [["
|
||||
fi
|
||||
[ -z "${another_var}" ]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue