xen: add more sanitation options to update script

We use a lot of pipes, so it's good to exit if any of the dependent
commands fail.

Signed-off-by: Fernando Rodrigues <alpha@sigmasquadron.net>
This commit is contained in:
Fernando Rodrigues 2024-08-16 04:48:23 +00:00
parent 15256c05eb
commit bdcf44c52d
No known key found for this signature in database
GPG key ID: CC3AE2EA00000000

View file

@ -1,8 +1,9 @@
#!/usr/bin/env nix-shell
#!nix-shell -i bash -p gitMinimal curl gnupg nix-prefetch-git nixfmt-rfc-style
# shellcheck disable=SC2206,SC2207 shell=bash
set -e
set -o errexit
set -o pipefail
set -o nounset
# This script expects to be called in an interactive terminal somewhere inside Nixpkgs.
echo "Preparing..."