Skip to content

Commit 40425d7

Browse files
committed
fix: change substitution syntax in local script
1 parent 31ec2d8 commit 40425d7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

docker-compose/local/lps-env.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,8 @@ CSRF_TOKEN=$(curl -s -c cookie_jar.txt \
212212
-H 'Sec-Fetch-Site: same-origin' \
213213
"http://localhost:8080/management" | sed -n 's/.*name="csrf"[^>]*value="\([^"]*\)".*/\1/p')
214214

215-
CSRF_TOKEN=${CSRF_TOKEN//+/+}
215+
# shellcheck disable=SC2001
216+
CSRF_TOKEN=$(echo "$CSRF_TOKEN" | sed 's/+/+/g')
216217
curl -s -b cookie_jar.txt -c cookie_jar.txt "http://localhost:8080/management/login" \
217218
-H "X-CSRF-Token: $CSRF_TOKEN" \
218219
-H 'Content-Type: application/json' \

0 commit comments

Comments
 (0)