From ee7909260c011afa37d6c48a7cabd65eead11d6f Mon Sep 17 00:00:00 2001 From: Ryan Date: Tue, 30 Jul 2024 20:45:39 +0000 Subject: [PATCH] fix: update which shell is used for executing build commands --- internal/custom_executable/build.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/custom_executable/build.go b/internal/custom_executable/build.go index c20bd1a5..e69d68db 100644 --- a/internal/custom_executable/build.go +++ b/internal/custom_executable/build.go @@ -20,7 +20,7 @@ func ReplaceAndBuild(outputPath, randomString string) error { // Copy the custom_executable to the output path command := fmt.Sprintf("cp %s %s", path.Join(os.Getenv("TESTER_DIR"), "custom_executable"), outputPath) - copyCmd := exec.Command("bash", "-c", command) + copyCmd := exec.Command("sh", "-c", command) copyCmd.Stdout = io.Discard copyCmd.Stderr = io.Discard if err := copyCmd.Run(); err != nil { @@ -30,7 +30,7 @@ func ReplaceAndBuild(outputPath, randomString string) error { // Replace the placeholder with the random string // We can run the executable now, it will work as expected command = fmt.Sprintf("echo -n \"%s\" | dd of=%s bs=1 seek=$((0x2070 + 4)) conv=notrunc", randomString, outputPath) - buildCmd := exec.Command("bash", "-c", command) + buildCmd := exec.Command("sh", "-c", command) buildCmd.Stdout = io.Discard buildCmd.Stderr = io.Discard if err := buildCmd.Run(); err != nil {