Update base4 command to use tee (fixes #153)

pull/159/head
MattIPv4 2020-06-18 17:34:59 +01:00
parent 88a4929d36
commit 9e54885d17
1 changed files with 1 additions and 1 deletions

View File

@ -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;