summaryrefslogtreecommitdiff
path: root/noide
diff options
context:
space:
mode:
authorAlessandro Iezzi <aiezzi@alessandroiezzi.it>2023-06-21 15:16:59 +0200
committerAlessandro Iezzi <aiezzi@alessandroiezzi.it>2023-06-21 15:16:59 +0200
commitbea802e12e3bb8fc7b4f4dcd4aa9e1812798be76 (patch)
treee4f982d5b190a31121ccc5b1744a8791eb593391 /noide
parent033e8dd31e95d23a8906ed438e053909bb12e02f (diff)
downloadnoide-bea802e12e3bb8fc7b4f4dcd4aa9e1812798be76.tar.gz
noide-bea802e12e3bb8fc7b4f4dcd4aa9e1812798be76.zip
Some corrections
Diffstat (limited to 'noide')
-rwxr-xr-xnoide9
1 files changed, 3 insertions, 6 deletions
diff --git a/noide b/noide
index 80bdd32..11dfd4e 100755
--- a/noide
+++ b/noide
@@ -41,11 +41,7 @@ update_copyright()
s="\/\*-"
m=" \*"
e=" \*\/"
- elif [ "$ftype" = 'makefile script' ]; then
- s="#-"
- m="#"
- e=""
- elif [ "$ftype" = 'POSIX shell script' ]; then
+ elif [ "$ftype" = 'makefile script' ] || [ "$ftype" = 'POSIX shell script' ]; then
s="#-"
m="#"
e=""
@@ -68,9 +64,10 @@ update_copyright()
rm $tmpfile
}
-while [ $# -gt ]; do
+while [ $# -gt 0 ]; do
case $1 in
--update-copyright)
+ shift
update_copyright $@
;;
esac