makedeb
The Go programming language
Click here to go back to the commit logs for golang-go.
Hash: adfd21e8061161fe0b64953999f4299ee2f4d087
Message: Use '/usr/bin/env bash' shebang in preinst script
Debian doesn't have Bash located at '/usr/bin/bash', so we need to check where Bash is located instead.
diff --git a/.SRCINFO b/.SRCINFO
index 38c952f..6c5fe03 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -4,7 +4,7 @@ epoch = 2
preinst = ./preinst
pkgbase = golang-go
pkgdesc = The Go programming language
-pkgrel = 2
+pkgrel = 3
pkgver = 1.18.1
url = https://go.dev/
arch = any
diff --git a/PKGBUILD b/PKGBUILD
index bdc6862..3be36f3 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,7 +1,7 @@
# Maintainer: Hunter Wittenborn <hunter@hunterwittenborn.com>
pkgname=golang-go
pkgver=1.18.1
-pkgrel=2
+pkgrel=3
epoch=2
pkgdesc='The Go programming language'
arch=('any')
diff --git a/preinst b/preinst
index f58771e..75778f8 100755
--- a/preinst
+++ b/preinst
@@ -1,4 +1,4 @@
-#!/usr/bin/bash
+#!/usr/bin/env bash
set -e
# 'golang-go' from the Debian and Ubuntu repositories depends on 'golang-src',