diff --git a/nixos/profiles/services/hydra/hook.sh b/nixos/profiles/services/hydra/hook.sh index ff5b539b1..349158257 100644 --- a/nixos/profiles/services/hydra/hook.sh +++ b/nixos/profiles/services/hydra/hook.sh @@ -24,7 +24,7 @@ if [ "$hit" = "true" ]; then job=$(jq -r ".job" "$HYDRA_JSON") echo "job = $job" - if [[ $job =~ ^(.*)\.nixos/(.*)$ && "$(jq --raw-output '.jobset' "$HYDRA_JSON")" == "main" ]]; then + if [[ $job =~ ^(.*)\.nixos/([^/]*)$ && "$(jq --raw-output '.jobset' "$HYDRA_JSON")" == "main" ]]; then _system="${BASH_REMATCH[1]}" host="${BASH_REMATCH[2]}"