chore: fix provisioner scripts shebang for nix users (#21066)

This commit is contained in:
Steven Masley
2025-12-02 13:03:21 -06:00
committed by GitHub
parent ff46917e62
commit c3c059fbc4
4 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -156,7 +156,7 @@ func TestProvision_Cancel(t *testing.T) {
binPath := filepath.Join(dir, "terraform")
// Example: exec /path/to/terrafork_fake_cancel.sh 1.2.1 apply "$@"
content := fmt.Sprintf("#!/bin/sh\nexec %q %s %s \"$@\"\n", fakeBin, terraform.TerraformVersion.String(), tt.mode)
content := fmt.Sprintf("#!/usr/bin/env sh\nexec %q %s %s \"$@\"\n", fakeBin, terraform.TerraformVersion.String(), tt.mode)
err := os.WriteFile(binPath, []byte(content), 0o755) //#nosec
require.NoError(t, err)
t.Logf("wrote fake terraform script to %s", binPath)
+1 -1
View File
@@ -1,4 +1,4 @@
#!/bin/sh
#!/usr/bin/env sh
VERSION=$1
MODE=$2
+1 -1
View File
@@ -1,4 +1,4 @@
#!/bin/sh
#!/usr/bin/env sh
VERSION=$1
shift 1
+1 -1
View File
@@ -1,4 +1,4 @@
#!/bin/sh
#!/usr/bin/env sh
VERSION=$1
shift 1