mirror of
https://github.com/digitalocean/nginxconfig.io.git
synced 2025-09-24 04:59:25 +08:00
Update base4 command to use tee (fixes #153)
This commit is contained in:
@@ -146,7 +146,7 @@ THE SOFTWARE.
|
|||||||
|
|
||||||
// Convert it to base64 string
|
// Convert it to base64 string
|
||||||
const b64 = btoa(String.fromCharCode(...contents));
|
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() {
|
setupCopy() {
|
||||||
const originalText = this.$refs.copyTar.textContent;
|
const originalText = this.$refs.copyTar.textContent;
|
||||||
|
Reference in New Issue
Block a user