diff options
author | superherointj <5861043+superherointj@users.noreply.github.com> | 2024-05-23 20:16:42 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-23 20:16:42 -0300 |
commit | d0a20d7c5955c04b8bec8044997991a92f9210cd (patch) | |
tree | 6e092609385570a66b13f5cda0f854943aefd7fc /pkgs/by-name/bi | |
parent | 4d2462511f06b85b0bc1aabba90a0e8952853c28 (diff) | |
parent | 5771dbfa7d2f33c4d2bb417ec365282707e9156c (diff) |
Merge pull request #314112 from khaneliman/bicep
bicep: fix updater script
Diffstat (limited to 'pkgs/by-name/bi')
-rwxr-xr-x | pkgs/by-name/bi/bicep/updater.sh | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/pkgs/by-name/bi/bicep/updater.sh b/pkgs/by-name/bi/bicep/updater.sh index dc45cc1357461..22ab3eced4208 100755 --- a/pkgs/by-name/bi/bicep/updater.sh +++ b/pkgs/by-name/bi/bicep/updater.sh @@ -4,14 +4,15 @@ set -eo pipefail cd "$(dirname "${BASH_SOURCE[0]}")" +deps_file="$(realpath "./deps.nix")" new_version="$(curl -s "https://api.github.com/repos/azure/bicep/releases?per_page=1" | jq -r '.[0].name')" old_version="$(sed -nE 's/\s*version = "(.*)".*/\1/p' ./package.nix)" if [[ "$new_version" == "$old_version" ]]; then - echo "Already up to date!" - exit 0 + echo "Already up to date!" + exit 0 fi cd ../../../.. -update-source-version bicep "${new_version//v}" -nix-build -A bicep.fetch-deps --no-out-link +update-source-version bicep "${new_version//v/}" +"$(nix-build . -A bicep.fetch-deps --no-out-link)" "$deps_file" |