From 0d86d7df3cf62ed0a010197f2963842311b0a4b8 Mon Sep 17 00:00:00 2001 From: Tomasz Kramkowski Date: Fri, 6 Aug 2021 17:18:20 +0100 Subject: make do-link executable from /usr/bin/env On openbsd the script interpreter of an interpreter script can't be an interpreter script (script(7)) so do-link must be ran with /usr/bin/env which means the type parameter needs to be a variable set in the do file. --- do-link | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'do-link') diff --git a/do-link b/do-link index 189e899..76ca11b 100755 --- a/do-link +++ b/do-link @@ -1,8 +1,7 @@ #!/usr/bin/env bash set -e -type=$1 -. "$2" # .do file which we are "interpreting" +. "$1" # .do file which we are "interpreting" redo-ifchange "$0" "link-$type.tool" "${objects[@]}" -shift 2 +shift . "./link-$type.tool" "${cmd[@]}" -- cgit v1.2.3-54-g00ecf