Browse Source

Silence pushd/popd

main
parent
commit
e4d1b62be6
Signed by: chris GPG Key ID: 3025DCBD46F81C0F
  1. 4
      README.org
  2. 4
      modules/hugo.nix

4
README.org

@ -697,7 +697,9 @@ let
mySiteDir = "/etc/dotfiles/docs/public/";
mySiteTgt = "ubuntu@chrishayward.xyz:/var/www/wedding";
mySiteBuild = pkgs.writeShellScriptBin "my-site-build" ''
pushd ${mySiteDir}../ && ${pkgs.hugo}/bin/hugo -v ; popd
pushd ${mySiteDir}../ > /dev/null &&
${pkgs.hugo}/bin/hugo -v ;
popd > /dev/null
'';
mySiteUpdate = pkgs.writeShellScriptBin "my-site-update" ''
${pkgs.rsync}/bin/rsync -aP ${mySiteDir} ${mySiteTgt}

4
modules/hugo.nix

@ -5,7 +5,9 @@ let
mySiteDir = "/etc/dotfiles/docs/public/";
mySiteTgt = "ubuntu@chrishayward.xyz:/var/www/wedding";
mySiteBuild = pkgs.writeShellScriptBin "my-site-build" ''
pushd ${mySiteDir}../ && ${pkgs.hugo}/bin/hugo -v ; popd
pushd ${mySiteDir}../ > /dev/null &&
${pkgs.hugo}/bin/hugo -v ;
popd > /dev/null
'';
mySiteUpdate = pkgs.writeShellScriptBin "my-site-update" ''
${pkgs.rsync}/bin/rsync -aP ${mySiteDir} ${mySiteTgt}

Loading…
Cancel
Save