diff options
Diffstat (limited to 'noide')
-rwxr-xr-x | noide | 9 |
1 files changed, 3 insertions, 6 deletions
@@ -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 |