call modbuild via /usr/bin/env in shebang, handle '--' argument

This commit is contained in:
2019-05-29 17:14:48 +02:00
parent 83fbc155dc
commit c831cfbd36
+4 -1
View File
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash --
#
# The following build specific variables are set and used in libpbuild.bash:
# ARGS
@@ -228,6 +228,9 @@ parse_args() {
--update-modulefiles )
pbuild.update_modulefiles 'yes'
;;
-- )
:
;;
-* )
std::die 1 "Invalid option -- '$1'"
;;