From bea802e12e3bb8fc7b4f4dcd4aa9e1812798be76 Mon Sep 17 00:00:00 2001 From: Alessandro Iezzi Date: Wed, 21 Jun 2023 15:16:59 +0200 Subject: Some corrections --- noide | 9 +++------ 1 file 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 -- cgit v1.2.3