Skip to content

Commit bf89de7

Browse files
fixed escaping
1 parent 13b1692 commit bf89de7

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

act.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash
22
ACT_VERSION="v0.3.0"
3-
ACT_LAST_COMMIT="1682ba551b5d65892f300b5a737b46e1c0f691af"
3+
ACT_LAST_COMMIT="13b1692a909cb01fbf21c38ef46ac9950d92b7be"
44
USER_CONFIG="$HOME/.appdynamics/act/config.sh"
55
GLOBAL_CONFIG="/etc/appdynamics/act/config.sh"
66
CONFIG_CONTROLLER_COOKIE_LOCATION="/tmp/appdynamics-controller-cookie.txt"
@@ -60,7 +60,7 @@ function apiCall {
6060
do
6161
case "${opt}" in
6262
X)
63-
METHOD=${OPTARG}
63+
METHOD=${OPTARG}
6464
;;
6565
d)
6666
PAYLOAD=${OPTARG}
@@ -103,10 +103,10 @@ function apiCall {
103103
debug "Applying $opt with $ARG"
104104
# PAYLOAD=${PAYLOAD//\$\{${opt}\}/$OPTARG}
105105
# ENDPOINT=${ENDPOINT//\$\{${opt}\}/$OPTARG}
106-
while [[ $PAYLOAD =~ \${$opt\??} ]] ; do
106+
while [[ $PAYLOAD =~ \$\{$opt\??\} ]] ; do
107107
PAYLOAD=${PAYLOAD//${BASH_REMATCH[0]}/$OPTARG}
108108
done;
109-
while [[ $ENDPOINT =~ \${$opt\??} ]] ; do
109+
while [[ $ENDPOINT =~ \$\{$opt\??\} ]] ; do
110110
ENDPOINT=${ENDPOINT//${BASH_REMATCH[0]}/$ARG}
111111
done;
112112
done

helpers/apiCall.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ function apiCall {
99
do
1010
case "${opt}" in
1111
X)
12-
METHOD=${OPTARG}
12+
METHOD=${OPTARG}
1313
;;
1414
d)
1515
PAYLOAD=${OPTARG}
@@ -57,10 +57,10 @@ function apiCall {
5757
debug "Applying $opt with $ARG"
5858
# PAYLOAD=${PAYLOAD//\$\{${opt}\}/$OPTARG}
5959
# ENDPOINT=${ENDPOINT//\$\{${opt}\}/$OPTARG}
60-
while [[ $PAYLOAD =~ \${$opt\??} ]] ; do
60+
while [[ $PAYLOAD =~ \$\{$opt\??\} ]] ; do
6161
PAYLOAD=${PAYLOAD//${BASH_REMATCH[0]}/$OPTARG}
6262
done;
63-
while [[ $ENDPOINT =~ \${$opt\??} ]] ; do
63+
while [[ $ENDPOINT =~ \$\{$opt\??\} ]] ; do
6464
ENDPOINT=${ENDPOINT//${BASH_REMATCH[0]}/$ARG}
6565
done;
6666
done

0 commit comments

Comments
 (0)