mirror of
https://github.com/sys4-fr/server-nalc.git
synced 2025-04-14 00:20:26 +02:00
Removed all whitespaces (using new script)
This commit is contained in:
parent
f81b8ca677
commit
2913bcb93d
18
other_things/scripts/remove_whitespaces.sh
Executable file
18
other_things/scripts/remove_whitespaces.sh
Executable file
@ -0,0 +1,18 @@
|
||||
#!/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 `git status`
|
||||
echo "Done"
|
||||
|
||||
#EOF
|
Loading…
x
Reference in New Issue
Block a user