fix: dont fallback to normal shell as this results in 0 exit code all the time

This commit is contained in:
Technofab 2023-05-29 14:51:22 +02:00
parent 9447dcb310
commit 804f85ca9e
No known key found for this signature in database
GPG key ID: A0AA746B951C8830

View file

@ -3,10 +3,5 @@ set -e
cd "$CI_PROJECT_DIR" cd "$CI_PROJECT_DIR"
echo "Trying to activate flake's CI shell..." echo "Activating flake's CI shell..."
{ nix --extra-experimental-features "flakes nix-command" develop .#ci --impure --command "bash" >/dev/null
nix --extra-experimental-features "flakes nix-command" develop .#ci --impure --command "bash" >/dev/null
} || {
echo "nix develop failed, falling back to normal shell..."
eval "bash"
}