aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2019-06-02 16:05:20 -0300
committerEuAndreh <eu@euandre.org>2019-06-02 16:05:20 -0300
commit44da6721c5d5644103ee65c3c345c0c0379ebb85 (patch)
treeef3d1c6b70b35fb1089d3a7547bd0c702f4845ca
parentFormat utils.nix (diff)
downloadeuandre.org-44da6721c5d5644103ee65c3c345c0c0379ebb85.tar.gz
euandre.org-44da6721c5d5644103ee65c3c345c0c0379ebb85.tar.xz
Update utils.nix
Fix boolean logic bug on overwriting docs.
-rw-r--r--utils.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils.nix b/utils.nix
index 942b202..2c1a9d3 100644
--- a/utils.nix
+++ b/utils.nix
@@ -90,7 +90,7 @@ in rec {
set -euo pipefail
OUT_DOCS="${docsDerivation}"
${
- if overwrite then "# " else ""
+ if overwrite then "" else "# "
}${pkgs.openssh}/bin/ssh -o StrictHostKeyChecking=no "$SERVER_URL" rm -rf "$DOCS_SERVER_PATH/*"
${pkgs.rsync}/bin/rsync -avzP \
--rsh="ssh -o StrictHostKeyChecking=no" \