aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/rosa
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2026-02-28 23:29:22 +0900
committerOphestra <cat@gensokyo.uk>2026-02-28 23:29:22 +0900
commit2a34a269d0828b75e4cbbdae2d316a011ff00326 (patch)
tree35e25869b382879e46c4dd063e7704858f631c21 /internal/rosa
parentef130adb27831d43f3779ef25cd72fc99ce32752 (diff)
internal/rosa: stricter cure-script options
This change also moves .cure-script out of /system/bin. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/rosa')
-rw-r--r--internal/rosa/rosa.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/rosa/rosa.go b/internal/rosa/rosa.go
index b2511f82..e49bba5b 100644
--- a/internal/rosa/rosa.go
+++ b/internal/rosa/rosa.go
@@ -218,7 +218,7 @@ func fixupEnviron(env, extras []string, paths ...string) []string {
// absCureScript is the absolute pathname [Toolchain.New] places the fixed-up
// build script under.
-var absCureScript = AbsSystem.Append("bin", ".cure-script")
+var absCureScript = AbsSystem.Append(".cure-script")
const (
// TExclusive denotes an exclusive [pkg.Artifact].
@@ -348,7 +348,7 @@ mkdir -vp /work/system/bin
support...,
), pkg.Path(
absCureScript, false,
- pkg.NewFile(".cure-script", []byte("set -e\n"+script)),
+ pkg.NewFile(".cure-script", []byte("set -eu -o pipefail\n"+script)),
)}, paths)...,
)
}