meshcentral: fix update script
This commit is contained in:
parent
c854e0a46f
commit
f9c648858c
1 changed files with 1 additions and 1 deletions
|
@ -47,7 +47,7 @@ update-source-version meshcentral "$version" "$hash" "$tarball"
|
|||
new_yarn_hash=$(prefetch-yarn-deps "$expr_dir/yarn.lock")
|
||||
new_yarn_hash=$(nix-hash --type sha256 --to-sri "$new_yarn_hash")
|
||||
old_yarn_hash=$(nix-instantiate --eval -A meshcentral.offlineCache.outputHash | tr -d '"')
|
||||
sed -i "$expr_dir/default.nix" -re "s|\"$old_yarn_hash\"|\"$new_yarn_hash\"|"
|
||||
sed -i "$expr_dir/default.nix" -e "s|\"$old_yarn_hash\"|\"$new_yarn_hash\"|"
|
||||
|
||||
# Only clean up if everything worked
|
||||
cd /
|
||||
|
|
Loading…
Reference in a new issue