1
0
mirror of https://github.com/sys4-fr/server-nalc.git synced 2024-11-18 08:10:38 +01:00
server-nalc/other_things/scripts/Git/remove_whitespaces.sh
LeMagnesium 546500db7d [3d_armor] Update
- Also fix a script
2016-05-13 20:33:12 +02:00

18 lines
379 B
Bash
Executable File

#!/bin/bash
# Script to remove whitespaces from our repository's lua files
# Script ßý LeMagnesium, 2015
# (Note: You need this : https://github.com/LeMagnesium/mucro )
# Go to repo root
mydir="`dirname "$0"`"
test -d "$mydir" && cd "$mydir/../../../"
# Get all lua file's names
luafiles=$(find -type f -name "*.lua")
sed -i 's/[ \t]*$//' $luafiles
# Done
echo "Done"
#EOF