master hovercats/oakiss / repo / go / patches / 0001-src-make.bash-use-POSIX-sh-and-remove-some-bashism.patch
 1From 438f1fcaef381fe3950ee7b6bfddc1233d487f73 Mon Sep 17 00:00:00 2001
 2From: hovercats <hovercatswithlasereyes@protonmail.com>
 3Date: Thu, 29 Aug 2024 06:44:15 +0200
 4Subject: [PATCH] src/make.bash: use POSIX sh and remove some bashism
 5
 6---
 7 src/make.bash | 4 ++--
 8 1 file changed, 2 insertions(+), 2 deletions(-)
 9
10diff --git a/src/make.bash b/src/make.bash
11index 814b7e8..b5344b1 100755
12--- a/src/make.bash
13+++ b/src/make.bash
14@@ -1,4 +1,4 @@
15-#!/usr/bin/env bash
16+#!/bin/sh
17 # Copyright 2009 The Go Authors. All rights reserved.
18 # Use of this source code is governed by a BSD-style
19 # license that can be found in the LICENSE file.
20@@ -164,7 +164,7 @@ bootstrapenv() {
21 }
22 
23 export GOROOT="$(cd .. && pwd)"
24-IFS=$'\n'; for go_exe in $(type -ap go); do
25+for go_exe in $(command -v go); do
26 	if [[ ! -x "$GOROOT_BOOTSTRAP/bin/go" ]]; then
27 		goroot_bootstrap=$GOROOT_BOOTSTRAP
28 		GOROOT_BOOTSTRAP=""
29-- 
302.45.1
31