Skip to content

Commit a61196d

Browse files
committed
Escape dollar sign before parsing key-val strings
- fixes passing hashed password values
1 parent 54556e3 commit a61196d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

func/main.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -255,6 +255,7 @@ parse_object_kv_list() {
255255

256256
str=${@//$'\n'/ }
257257
str=${str//\"/\\\"}
258+
str=${str//$/\\$}
258259
IFS=$'\n'
259260

260261
suboutput=$(setpriv --init-groups --reuid nobody --regid nogroup bash -c "PS4=''; set -xe; eval \"${str}\"" 2>&1)

0 commit comments

Comments
 (0)