1
0
mirror of https://github.com/sys4-fr/server-nalc.git synced 2024-09-14 00:30:21 +02:00
server-nalc/other_things/scripts/remove_whitespaces.sh
2015-06-18 13:21:49 +02:00

18 lines
371 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=$(mucro '.lua'$ -r . -b)
sed -i 's/[ \t]*$//' $luafiles
# Done
echo "Done"
#EOF