commit 4cbd180c799da5e4c7ff1456a740a2832e9e1bc2 parent 38db2e0428054f4ccf04e36635dd679e6acaad04 Author: parazyd <parazyd@dyne.org> Date: Wed, 20 Nov 2019 14:36:03 +0100 Do not use tee for cats. Diffstat:
M | docker2sh.py | | | 2 | +- |
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/docker2sh.py b/docker2sh.py @@ -50,7 +50,7 @@ def compress_and_b64(file, basepath=None): comp = compress(file.encode()) b64 = b64encode(comp) - cat = 'cat << __EOFF__ | base64 -d | bunzip2 | sudo tee %s >/dev/null' % (spl[1]) + cat = 'cat << __EOFF__ | base64 -d | bunzip2 > %s' % (spl[1]) return '\n'.join([cat, b64.decode(), '__EOFF__']) + '\n'