diff options
author | EuAndreh <eu@euandre.org> | 2019-06-01 17:59:06 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2019-06-01 18:00:32 -0300 |
commit | 50a5fede59f13d6983adc3f431fac438717713f9 (patch) | |
tree | 214e6006470c5014805e1f3025d8fdd80ecb1bf7 /utils.nix | |
parent | Add reference to partitioning tutorials (diff) | |
download | dotfiles-50a5fede59f13d6983adc3f431fac438717713f9.tar.gz dotfiles-50a5fede59f13d6983adc3f431fac438717713f9.tar.xz |
Delete existing documentation content in docs derivation
Diffstat (limited to 'utils.nix')
-rw-r--r-- | utils.nix | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -90,10 +90,11 @@ in rec { touch $out ''; }); - publishScript = docsDerivation: + overwritingPublishScript = docsDerivation: pkgs.writeShellScriptBin "publish.sh" '' set -euo pipefail OUT_DOCS="${docsDerivation}" + ${pkgs.openssh}/bin/ssh "$SERVER_URL" rm -rf "$DOCS_SERVER_PATH/*" ${pkgs.rsync}/bin/rsync -avzP \ --rsh="ssh -o StrictHostKeyChecking=no" \ "$OUT_DOCS/" \ |