From c831cfbd36537c576b5195b0a1a592806decfc17 Mon Sep 17 00:00:00 2001 From: Achim Gsell Date: Wed, 29 May 2019 17:14:48 +0200 Subject: [PATCH] call modbuild via /usr/bin/env in shebang, handle '--' argument --- Pmodules/modbuild.in | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Pmodules/modbuild.in b/Pmodules/modbuild.in index 96e5238..b231656 100755 --- a/Pmodules/modbuild.in +++ b/Pmodules/modbuild.in @@ -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'" ;;