fix syntax

This commit is contained in:
Cameron Thompson
2024-07-14 01:57:04 -04:00
committed by GitHub
parent 91d1ade6a4
commit a061212ff4

View File

@@ -17,10 +17,10 @@ x=$(urldecode "$atcmd")
MYATCMD=$(printf '%b\n' "${atcmd//%/\\x}")
if [ -n "${MYATCMD}" ]; then
# Capture the response and remove ANSI color codes using awk
runcmd=$(atcmd "$x" | awk '{ gsub(/\x1B\[[0-9;]*[mG]/, "") }1')
runcmd=$(atcmd '$x' | awk '{ gsub(/\x1B\[[0-9;]*[mG]/, "") }1')
fi
echo "Content-type: text/plain"
echo $x
echo ""
echo "$runcmd"
echo "$runcmd"