From e4d1b62be6dc314323f305a2745bba61efd02261 Mon Sep 17 00:00:00 2001 From: Christopher James Hayward Date: Mon, 9 May 2022 10:52:48 -0400 Subject: [PATCH] Silence pushd/popd --- README.org | 4 +++- modules/hugo.nix | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/README.org b/README.org index d45c1ee..a2aca2e 100644 --- a/README.org +++ b/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} diff --git a/modules/hugo.nix b/modules/hugo.nix index eca6f75..ae948b1 100644 --- a/modules/hugo.nix +++ b/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}