X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fxonotic-data.pk3dir.git;a=blobdiff_plain;f=qcsrc%2Fwhitespace.sh;h=ba16fd79ef8f4ddac88686a09435a27e8ee45a95;hp=a017dc84f59965e829b8f4c3495caa924839e25d;hb=3ae1efa7401791e42e3171f4db2cc2d38adde088;hpb=cd109cf922bc405155c680582745d645bd057ded diff --git a/qcsrc/whitespace.sh b/qcsrc/whitespace.sh index a017dc84f..ba16fd79e 100755 --- a/qcsrc/whitespace.sh +++ b/qcsrc/whitespace.sh @@ -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:]]*$//' \