From 65d4d5d83ce66322eb7bb4a3d22a85f1c02653f0 Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Mon, 17 Aug 2026 19:37:20 +0200 Subject: [PATCH] readme tweaks --- README.md | 13 ++++++++----- example-script.sh | 2 +- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index eb99449..e1be066 100644 --- a/README.md +++ b/README.md @@ -381,11 +381,14 @@ complex tests are setting up more complex instances. A script contains of 3 paths -1. An optional shebang line setting `haze` as the interperter, e.g. - `#! /usr/bin/env haze` +1. An optional shebang line setting `haze` as the interpreter, e.g. + `#! /usr/bin/env -S haze script` 2. A shebang line setting the options for the instance creation as the - interperter, e.g. `#! haze shell pgsql s3` -3. The rest that is ran as a script inside the created instace. + interpreter, e.g. `#! haze shell pgsql s3` +3. The rest that is ran as a script inside the created instance. + +The first sheband is set, the script can be ran directly. Else it needs to be +run with `haze script [path-to-script]`. For example, the following script will create an instance with `postgresql` and `s3` primary storage. Then creates a new file, gets the file id, read the object @@ -393,7 +396,7 @@ of the file from S3, validate that it contains the expected contents, and cleanup the instance. ```bash -#! /usr/bin/env haze script +#! #! /usr/bin/env -S haze script #! haze shell pgsql s3 echo 'test' | occ file:put '-' /admin/files/test.txt diff --git a/example-script.sh b/example-script.sh index ad16aa3..5e8a821 100755 --- a/example-script.sh +++ b/example-script.sh @@ -1,4 +1,4 @@ -#! /usr/bin/env haze script +#! /usr/bin/env -S haze script #! haze shell pgsql s3 echo 'test' | occ file:put '-' /admin/files/test.txt