Skip to content

Commit

Permalink
Use bash in post-build hook
Browse files Browse the repository at this point in the history
  • Loading branch information
sandydoo committed Apr 25, 2024
1 parent 226ef86 commit 8079651
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dist/main/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7957,7 +7957,7 @@ async function execToVariable(command, args, options) {
async function registerPostBuildHook(cachixBin, daemonDir) {
const postBuildHookScriptPath = `${daemonDir}/post-build-hook.sh`;
await fs.writeFile(postBuildHookScriptPath, `
#!/bin/sh
#!/usr/bin/env bash
set -eu
set -f # disable globbing
Expand Down
2 changes: 1 addition & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ async function execToVariable(command: string, args?: string[], options?: exec.E
async function registerPostBuildHook(cachixBin: string, daemonDir: string) {
const postBuildHookScriptPath = `${daemonDir}/post-build-hook.sh`;
await fs.writeFile(postBuildHookScriptPath, `
#!/bin/sh
#!/usr/bin/env bash
set -eu
set -f # disable globbing
Expand Down

0 comments on commit 8079651

Please sign in to comment.