]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/whitespace.sh
Merge branch 'master' into TimePath/unified_weapons
[xonotic/xonotic-data.pk3dir.git] / qcsrc / whitespace.sh
index a017dc84f59965e829b8f4c3495caa924839e25d..ba16fd79ef8f4ddac88686a09435a27e8ee45a95 100755 (executable)
@@ -1,6 +1,6 @@
 #!/usr/bin/env bash
-
-find . -type f -print0 |                                    \
+cd ${0%[\\/]*}
+find . -name .git -prune -o -type f -print0 |               \
     xargs -0 sed -i                                         \
         `# strip trailing spaces`                           \
         -e 's/[[:space:]]*$//'                              \