From a061212ff4111fec01a40a86dfd663fcc353240e Mon Sep 17 00:00:00 2001 From: Cameron Thompson <50184035+iamromulan@users.noreply.github.com> Date: Sun, 14 Jul 2024 01:57:04 -0400 Subject: [PATCH] fix syntax --- simpleadmin/www/cgi-bin/user_atcommand | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/simpleadmin/www/cgi-bin/user_atcommand b/simpleadmin/www/cgi-bin/user_atcommand index 386e60c..2e18517 100644 --- a/simpleadmin/www/cgi-bin/user_atcommand +++ b/simpleadmin/www/cgi-bin/user_atcommand @@ -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" \ No newline at end of file +echo "$runcmd"