servo/python/tidy/servo_tidy_tests/shell_tidy.sh
2016-08-05 09:42:04 -04:00

14 lines
295 B
Bash

#!/bin/bash
#
# Tests tidy for shell scripts.
set -o nounset
# Talking about some `concept in backticks` # shouldn't trigger
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}" ]