We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8fd1e8c commit 76400ffCopy full SHA for 76400ff
scripts/tests/copyright/test.sh
@@ -11,16 +11,18 @@
11
# diff output is printed
12
#
13
14
+script_directory=$(dirname "$0")
15
+
16
python_interpreter="python3"
17
18
if [[ "$OSTYPE" == "msys" ]]; then
19
python_interpreter="python"
20
fi
21
-$python_interpreter ../../lint/set_copyright.py in/*
22
+$python_interpreter "${script_directory}/../../lint/set_copyright.py" "${script_directory}"/in/*
23
-for i in in/*
24
+for i in "${script_directory}"/in/*
25
do
26
fn=$(basename $i)
- diff -du in/$fn out/$fn
27
+ diff -du "${script_directory}/in/${fn}" "${script_directory}/out/${fn}"
28
done
0 commit comments