diff options
author | EuAndreh <eu@euandre.org> | 2019-06-02 14:20:20 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2019-06-02 14:20:20 -0300 |
commit | 19afea3cf64dca415cdcb1053dfbf468852b34af (patch) | |
tree | eadd1b043c1be16c5888dc0a46bf2bded7755c65 | |
parent | Don't overwrite current content in publishScript (diff) | |
download | euandre.org-19afea3cf64dca415cdcb1053dfbf468852b34af.tar.gz euandre.org-19afea3cf64dca415cdcb1053dfbf468852b34af.tar.xz |
Format utils.nix
Diffstat (limited to '')
-rw-r--r-- | utils.nix | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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/" \ |