mirror of
https://github.com/servo/servo.git
synced 2025-06-08 16:43:28 +00:00
This cleans up the GitHub actions yaml a bit and ensures that developers are running this check locally before submitting changes. In addition, it allows adding tests for this check. Finally, this change fixes the tidy tests by upgrading voluptuous for Python 3.10 as well as by reverting an inadvertent change for NixOS compatibility on one of the dummy testing files.
14 lines
295 B
Bash
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}" ]
|