Skip to content

Commit 8dba772

Browse files
committedApr 17, 2016
added support for multiline env vars
1 parent 70c9068 commit 8dba772

File tree

1 file changed

+11
-10
lines changed

1 file changed

+11
-10
lines changed
 

‎doshie

+11-10
Original file line numberDiff line numberDiff line change
@@ -69,16 +69,17 @@ if [[ -z "$existing_shell" ]]; then
6969

7070
rm -f .doshie/.ready
7171

72-
existing_shell=$( docker run -d \
73-
-t \
74-
-i \
75-
-v "$doshie_root"/..:/src \
76-
-e DOSHIE_CMD="" \
77-
-e DOSHIE_UID="$doshie_uid" \
78-
-e DOSHIE_GID="$doshie_gid" \
79-
$DOSHIE_DOCKER_FLAGS \
80-
"$DOSHIE_BASE_IMAGE" \
81-
/bin/bash -c '. /src/.doshie/start-shell' )
72+
docker_cmd="docker run -d \
73+
-t \
74+
-i \
75+
-v \"$doshie_root\"/..:/src \
76+
-e DOSHIE_CMD=\"\" \
77+
-e DOSHIE_UID=\"$doshie_uid\" \
78+
-e DOSHIE_GID=\"$doshie_gid\" \
79+
$DOSHIE_DOCKER_FLAGS \
80+
\"$DOSHIE_BASE_IMAGE\" \
81+
/bin/bash -c '. /src/.doshie/start-shell'"
82+
existing_shell=$( . <( echo "${docker_cmd}" ) )
8283

8384
echo "$existing_shell" > .doshie/.existing_shell
8485

0 commit comments

Comments
 (0)
Please sign in to comment.