We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 900174a commit ad6f18fCopy full SHA for ad6f18f
1 file changed
docker/run
@@ -184,9 +184,9 @@ image=$(docker ps | grep "$REPO:$TAG" | awk '{ print $1 }')
184
if [ "$image" ]; then
185
if [ "$*" ]; then
186
echo "Running 'cd ~/${parent#$HOME/}; $*'"
187
- docker exec -u "$WHO" -t $image bash -c "cd '~/${parent#$HOME/}'; $*"
+ docker exec -u "$WHO" -t $image bash -i -c "cd; cd \"${parent#$HOME/}\"; $*"
188
else
189
- docker exec -u "$WHO" -ti $image bash
+ docker exec -u "$WHO" -ti $image bash -i
190
fi
191
192
echo ""
0 commit comments