aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2019-06-02 14:20:20 -0300
committerEuAndreh <eu@euandre.org>2019-06-02 14:20:20 -0300
commit19afea3cf64dca415cdcb1053dfbf468852b34af (patch)
treeeadd1b043c1be16c5888dc0a46bf2bded7755c65
parentDon't overwrite current content in publishScript (diff)
downloadeuandre.org-19afea3cf64dca415cdcb1053dfbf468852b34af.tar.gz
euandre.org-19afea3cf64dca415cdcb1053dfbf468852b34af.tar.xz
Format utils.nix
Diffstat (limited to '')
-rw-r--r--utils.nix4
1 files changed, 3 insertions, 1 deletions
diff --git a/utils.nix b/utils.nix
index f02db70..942b202 100644
--- a/utils.nix
+++ b/utils.nix
@@ -89,7 +89,9 @@ in rec {
pkgs.writeShellScriptBin "publish.sh" ''
set -euo pipefail
OUT_DOCS="${docsDerivation}"
- ${if overwrite then "# " else ""}${pkgs.openssh}/bin/ssh -o StrictHostKeyChecking=no "$SERVER_URL" rm -rf "$DOCS_SERVER_PATH/*"
+ ${
+ 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" \
"$OUT_DOCS/" \