curve: maybe fix kitaab sync not pushing at all

This commit is contained in:
Anish Lakhwara 2023-05-30 22:29:26 +10:00
parent 0e7cacc12b
commit a06cb1231f

View file

@ -4,7 +4,7 @@ let
name = "kitaab-sync"; name = "kitaab-sync";
# Note this will fail if index.wiki is open in vim while this runs # Note this will fail if index.wiki is open in vim while this runs
mkStartScript = name: pkgs.writeShellScript "${name}.sh" '' mkStartScript = name: pkgs.writeShellScript "${name}.sh" ''
set -euo pipefail # set -euo pipefail # Sometimes vimwiki is open and that causes `vimwiki tags rebuild` to fail, we still want to push to git in those cases
PATH=/run/current-system/sw/bin:/etc/profiles/per-user/anish/bin: PATH=/run/current-system/sw/bin:/etc/profiles/per-user/anish/bin:
cd /home/anish/kitaab cd /home/anish/kitaab
vimwiki tags rebuild vimwiki tags rebuild