mirror of
https://gitlab.com/TECHNOFAB/nix-gitlab-ci.git
synced 2025-12-12 10:10:06 +01:00
fix: dont fallback to normal shell as this results in 0 exit code all the time
This commit is contained in:
parent
9447dcb310
commit
804f85ca9e
1 changed files with 2 additions and 7 deletions
|
|
@ -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"
|
|
||||||
}
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue