From 9e54885d17972c082fae6aea6fcbfdb385dc1b7a Mon Sep 17 00:00:00 2001 From: MattIPv4 Date: Thu, 18 Jun 2020 17:34:59 +0100 Subject: [PATCH] Update base4 command to use tee (fixes #153) --- src/nginxconfig/templates/setup.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nginxconfig/templates/setup.vue b/src/nginxconfig/templates/setup.vue index 54dc5af..2a38621 100644 --- a/src/nginxconfig/templates/setup.vue +++ b/src/nginxconfig/templates/setup.vue @@ -146,7 +146,7 @@ THE SOFTWARE. // Convert it to base64 string const b64 = btoa(String.fromCharCode(...contents)); - return `echo '${b64}' | base64 --decode > ${this.$props.data.global.nginx.nginxConfigDirectory.computed}/${this.tarName}`; + return `echo '${b64}' | base64 --decode | tee ${this.$props.data.global.nginx.nginxConfigDirectory.computed}/${this.tarName} > /dev/null`; }, setupCopy() { const originalText = this.$refs.copyTar.textContent;