ntfy-sh: fix sh not found in subscribe command (#517319)
This commit is contained in:
@@ -8,6 +8,7 @@
|
||||
mkdocs,
|
||||
python3,
|
||||
python3Packages,
|
||||
runtimeShell,
|
||||
}:
|
||||
|
||||
buildGoModule (
|
||||
@@ -71,6 +72,12 @@ buildGoModule (
|
||||
|
||||
postPatch = ''
|
||||
sed -i 's# /bin/echo# echo#' Makefile
|
||||
substituteInPlace \
|
||||
cmd/subscribe_unix.go \
|
||||
cmd/subscribe_darwin.go \
|
||||
--replace \
|
||||
'scriptLauncher = []string{"sh", "-c"}' \
|
||||
'scriptLauncher = []string{"${runtimeShell}", "-c"}'
|
||||
'';
|
||||
|
||||
preBuild = ''
|
||||
|
||||
Reference in New Issue
Block a user