maintainers/scripts/oci: make scripts fail on error

This commit is contained in:
Thiago Kenji Okada 2023-09-21 22:08:22 +01:00
parent d5d4b08488
commit c655cdb536
2 changed files with 4 additions and 0 deletions

View File

@ -1,5 +1,7 @@
#! /usr/bin/env bash
set -euo pipefail
export NIX_PATH=nixpkgs=$(dirname $(readlink -f $0))/../../../..
export NIXOS_CONFIG=$(dirname $(readlink -f $0))/../../../modules/virtualisation/oci-image.nix

View File

@ -1,5 +1,7 @@
#! /usr/bin/env bash
set -euo pipefail
script_dir="$(dirname $(readlink -f $0))"
nixpkgs_root="$script_dir/../../../.."
export NIX_PATH="nixpkgs=$nixpkgs_root"