1
0
Fork 0

nvim: adjust plugin update script

This commit is contained in:
Daniel Kempkens 2024-12-25 15:36:26 +01:00
parent ec5e74d5e6
commit 5e2763b893
Signed by: daniel
SSH key fingerprint: SHA256:Ks/MyhQYcPRQiwMKLAKquWCdCPe3JXlb1WttgnAoSeM

View file

@ -70,7 +70,7 @@ for plugin in "${plugin_array[@]}"; do
}"
commit_date="$(echo "$src_json" | dasel -r json -w - '.date')"
version="$(date -d "$commit_date" "+%Y-%m-%d")"
version="$(TZ='Etc/UTC' date -d "$commit_date" "+%Y-%m-%d")"
case "$clone_src" in
https://github.com*)
@ -116,7 +116,11 @@ for plugin in "${plugin_array[@]}"; do
echo "$close_block" >>"$nix_new_file"
done
echo "}" >>"$nix_new_file"
{
echo "doInstallCheck = false;"
echo "}"
} >>"$nix_new_file"
nixpkgs-fmt "$nix_new_file"