diff options
author | Jan Tojnar <jtojnar@gmail.com> | 2021-12-31 07:01:16 +0100 |
---|---|---|
committer | Jan Tojnar <jtojnar@gmail.com> | 2021-12-31 07:06:27 +0100 |
commit | d9ff6d90aa3bbf552b0c84300e16738e24676efd (patch) | |
tree | f365c56330567870ffd7b8fb909167b2f55a8cfe /pkgs/common-updater/scripts | |
parent | d9dea8d2a9ce5ac08f03fb23d36104cbe8028583 (diff) |
common-updater-scripts: Silence outPath check
It is expected to fail in repos not using flakes-compat (like Nixpkgs).
Diffstat (limited to 'pkgs/common-updater/scripts')
-rwxr-xr-x | pkgs/common-updater/scripts/update-source-version | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/common-updater/scripts/update-source-version b/pkgs/common-updater/scripts/update-source-version index 2b890bc3dc17..88cf7d459a72 100755 --- a/pkgs/common-updater/scripts/update-source-version +++ b/pkgs/common-updater/scripts/update-source-version @@ -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') |