Skip to content

Commit 7431d10

Browse files
committed
Use bash in post-build hook
1 parent ad440c0 commit 7431d10

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

dist/main/index.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -7957,14 +7957,14 @@ async function execToVariable(command, args, options) {
79577957
async function registerPostBuildHook(cachixBin, daemonDir) {
79587958
const postBuildHookScriptPath = `${daemonDir}/post-build-hook.sh`;
79597959
await fs.writeFile(postBuildHookScriptPath, `
7960-
#!/bin/sh
7960+
#!/usr/bin/env bash
79617961
79627962
set -eu
79637963
set -f # disable globbing
79647964
79657965
PUSH_FILTER="${pushFilter}"
79667966
7967-
function filterPaths {
7967+
filterPaths() {
79687968
local regex=$1
79697969
local paths=$2
79707970

src/main.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -276,14 +276,14 @@ async function execToVariable(command: string, args?: string[], options?: exec.E
276276
async function registerPostBuildHook(cachixBin: string, daemonDir: string) {
277277
const postBuildHookScriptPath = `${daemonDir}/post-build-hook.sh`;
278278
await fs.writeFile(postBuildHookScriptPath, `
279-
#!/bin/sh
279+
#!/usr/bin/env bash
280280
281281
set -eu
282282
set -f # disable globbing
283283
284284
PUSH_FILTER="${pushFilter}"
285285
286-
function filterPaths {
286+
filterPaths() {
287287
local regex=$1
288288
local paths=$2
289289

0 commit comments

Comments
 (0)