common-updater-scripts: Silence outPath check

It is expected to fail in repos not using flakes-compat (like Nixpkgs).
This commit is contained in:
Jan Tojnar 2021-12-31 07:01:16 +01:00
parent d9dea8d2a9
commit d9ff6d90aa

View file

@ -114,7 +114,7 @@ if [[ -z "$nixFile" ]]; then
fi
# flake-compat will return paths in the Nix store, we need to correct for that.
possiblyOutPath=$(nix-instantiate $systemArg --eval -E "with $importTree; outPath" | tr -d '"')
possiblyOutPath=$(nix-instantiate $systemArg --eval -E "with $importTree; outPath" 2>/dev/null | tr -d '"')
if [[ -n "$possiblyOutPath" ]]; then
outPathEscaped=$(echo "$possiblyOutPath" | sed 's#[$^*\\.[|]#\\&#g')
pwdEscaped=$(echo "$PWD" | sed 's#[$^*\\.[|]#\\&#g')