Skip to content

Commit ccca839

Browse files
authored
error get dbPath from json
"$(jq -r '.storage.dbPath' "$jsonConfigFile")"
1 parent 4958ee0 commit ccca839

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

4.0/docker-entrypoint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ _dbPath() {
168168

169169
if ! dbPath="$(_mongod_hack_get_arg_val --dbpath "$@")"; then
170170
if _parse_config "$@"; then
171-
dbPath="$(jq '.storage.dbPath' "$jsonConfigFile")"
171+
dbPath="$(jq -r '.storage.dbPath' "$jsonConfigFile")"
172172
fi
173173
fi
174174

0 commit comments

Comments
 (0)