aboutsummaryrefslogtreecommitdiffstats
path: root/do.sh
diff options
context:
space:
mode:
authorLouis Burda <quent.burda@gmail.com>2021-06-24 21:23:02 +0200
committerLouis Burda <quent.burda@gmail.com>2021-06-24 21:23:02 +0200
commit14bc8a3883663656cd4254567a978002c062992d (patch)
tree66f2c72f026c0142d9f0e74d272af5ed4b4863bb /do.sh
parent5569ec2abd2c8f31554a02587fda842e4da7eba3 (diff)
downloadenowars5-service-stldoctor-14bc8a3883663656cd4254567a978002c062992d.tar.gz
enowars5-service-stldoctor-14bc8a3883663656cd4254567a978002c062992d.zip
refactored code for readability and keeping within 80ch limit, updated service source
Diffstat (limited to 'do.sh')
-rw-r--r--do.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/do.sh b/do.sh
index 0faf177..5e0432c 100644
--- a/do.sh
+++ b/do.sh
@@ -43,7 +43,7 @@ elif [ "$1" == "cleansrc" ]; then
if [ ! -z $(echo "$path" | grep '.[hc]$') ]; then
sed -i -e 's/^\s*\/\*.*\*\/\s*$//g' "$path" # remove /* */ style comments
sed -i -e 's/\s*\/\*.*\*\/\s*/ /g' "$path" # remove /* */ style comments
- sed -i -e 's/\/\/.*//g' "$path" # remove // style comments
+ sed -i -e 's/\s*\/\/.*//g' "$path" # remove // style comments
sed -i -e ':a;N;$!ba;s/\n\{3,\}/\n\n/g' "$path" # collapse multiple newlines
sed -i -e 's/fprintf(\s*stderr\s*,\s*/printf(/g' "$path" # replace fprintf stderr
elif [ "$(basename "$path")" == "Makefile" ]; then