Merge tag 'locking-debug-2021-09-01' of git://git.kernel.org/pub/scm/linux/kernel...
[linux-2.6-microblaze.git] / scripts / spdxcheck-test.sh
index cfea6a0..cb76324 100644 (file)
@@ -1,12 +1,10 @@
 #!/bin/sh
 
-for PYTHON in python2 python3; do
-       # run check on a text and a binary file
-       for FILE in Makefile Documentation/logo.gif; do
-               $PYTHON scripts/spdxcheck.py $FILE
-               $PYTHON scripts/spdxcheck.py - < $FILE
-       done
-
-       # run check on complete tree to catch any other issues
-       $PYTHON scripts/spdxcheck.py > /dev/null
+# run check on a text and a binary file
+for FILE in Makefile Documentation/logo.gif; do
+       python3 scripts/spdxcheck.py $FILE
+       python3 scripts/spdxcheck.py - < $FILE
 done
+
+# run check on complete tree to catch any other issues
+python3 scripts/spdxcheck.py > /dev/null