Browse Source

Use ; instead of && in case of failure

master
parent
commit
e3964c93bc
Signed by: chris GPG Key ID: 3025DCBD46F81C0F
  1. 2
      flake.nix

2
flake.nix

@ -11,7 +11,7 @@
weddingSiteDir = "$HOME/.local/source/wedding-site/public/"; weddingSiteDir = "$HOME/.local/source/wedding-site/public/";
weddingSiteTgt = "ubuntu@chrishayward.xyz:/var/www/wedding"; weddingSiteTgt = "ubuntu@chrishayward.xyz:/var/www/wedding";
weddingSiteBuild = pkgs.writeShellScriptBin "wedding-site-build" '' weddingSiteBuild = pkgs.writeShellScriptBin "wedding-site-build" ''
pushd ${weddingSiteDir}../ && ${pkgs.hugo}/bin/hugo -v && popd
pushd ${weddingSiteDir}../ && ${pkgs.hugo}/bin/hugo -v ; popd
''; '';
weddingSiteUpdate = pkgs.writeShellScriptBin "wedding-site-update" '' weddingSiteUpdate = pkgs.writeShellScriptBin "wedding-site-update" ''
${pkgs.rsync}/bin/rsync -aP ${weddingSiteDir} ${weddingSiteTgt} ${pkgs.rsync}/bin/rsync -aP ${weddingSiteDir} ${weddingSiteTgt}

Loading…
Cancel
Save