proper ERR trap

This commit is contained in:
Alexander Tomokhov 2023-12-27 20:04:01 +04:00
parent 83fe55b86e
commit 2f9903599d

View file

@ -28,8 +28,10 @@ steps:
#! /usr/bin/env bash
set -o allexport
set -o errtrace
set -o pipefail
set -o errexit
shopt -s inherit_errexit
trap 'echo \$LINENO: \"\$BASH_COMMAND\"; exit 1' ERR
API_TOKEN="$USER_PASS"
CONFIG_URL=https://git.selfprivacy.org/api/v1/repos/SelfPrivacy/selfprivacy-nixos-template/archive/0f886d76e93dd366db7c53a8f6b672702910b99b.tar.gz