From 71fce915c6353af302070f4e04d9f29bf83b4637 Mon Sep 17 00:00:00 2001 From: Medicean Date: Tue, 29 Jun 2021 16:19:08 +0800 Subject: [PATCH] =?UTF-8?q?(Fix:Core/CMDLINUX)=20=E4=BF=AE=E6=AD=A3=20file?= =?UTF-8?q?manager=20hex=20to=20string=20payload=20=E8=BD=AC=E4=B9=89?= =?UTF-8?q?=E5=AD=97=E7=AC=A6=E6=95=B0=E9=87=8F=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/core/cmdlinux/template/filemanager.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/core/cmdlinux/template/filemanager.js b/source/core/cmdlinux/template/filemanager.js index 0ac9f9b4..27697ff2 100644 --- a/source/core/cmdlinux/template/filemanager.js +++ b/source/core/cmdlinux/template/filemanager.js @@ -20,7 +20,7 @@ module.exports = (arg1, arg2, arg3) => ({ elif command_exists python3; then echo -n $ACONTENT|python3 -c "import sys, binascii; sys.stdout.buffer.write(binascii.unhexlify(input().strip()))">$ADSTPATH && echo -n 1||echo -n 0; else - echo -n $ACONTENT|sed 's/\\([0-9A-F]\\{2\}\\)/\\\\\\\\\\\\x\\1/gI'|xargs printf>$ADSTPATH && echo -n 1||echo -n 0; + echo -n $ACONTENT|sed 's/\\([0-9A-F]\\{2\\}\\)/\\\\\\\\\\\\x\\1/gI'|xargs printf>$ADSTPATH && echo -n 1||echo -n 0; fi;`.replace(/\n\s+/g, '') }, @@ -45,7 +45,7 @@ module.exports = (arg1, arg2, arg3) => ({ elif command_exists python3; then echo -n $ACONTENT|python3 -c "import sys, binascii; sys.stdout.buffer.write(binascii.unhexlify(input().strip()))">>$ADSTPATH && echo -n 1||echo -n 0; else - echo -n $ACONTENT|sed 's/\\([0-9A-F]\\{2\}\\)/\\\\\\\\\\\\x\\1/gI'|xargs printf>>$ADSTPATH && echo -n 1||echo -n 0; + echo -n $ACONTENT|sed 's/\\([0-9A-F]\\{2\\}\\)/\\\\\\\\\\\\x\\1/gI'|xargs printf>>$ADSTPATH && echo -n 1||echo -n 0; fi;`.replace(/\n\s+/g, '') },