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