commit e6fcfaf5b395db10ed791a73814b9e002be4a980
parent 5105405ecc4e2ca95d7a7bab841b3de1520fc852
Author: Oliver Lowe <o@olowe.co>
Date: Tue, 18 Jan 2022 14:08:12 +1100
Set accurate crud.go header comment
getopt(1) clears the value of "$@", so grab it before it's cleared
Diffstat:
2 files changed, 8 insertions(+), 7 deletions(-)
diff --git a/crud.go b/crud.go
@@ -1,4 +1,4 @@
-// Code generated by ./crud.sh ; DO NOT EDIT.
+// Code generated by ./crud.sh -o crud.go; DO NOT EDIT.
package icinga
diff --git a/crud.sh b/crud.sh
@@ -2,6 +2,13 @@
types="Host Service User HostGroup"
+head="// Code generated by $0 $@; DO NOT EDIT.
+
+package icinga
+
+import \"fmt\"
+"
+
args=`getopt o: $*`
if test $? -ne 0
then
@@ -20,12 +27,6 @@ do
esac
done
-head="// Code generated by $0 $@; DO NOT EDIT.
-
-package icinga
-
-import \"fmt\"
-"
if test -n "$file"
then