Skip to content

Commit

Permalink
Improve attach since some docker has not install bash
Browse files Browse the repository at this point in the history
  • Loading branch information
coolgw committed Aug 12, 2023
1 parent 938f6f4 commit 5bbd9ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/attach
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ IFS='/' read -ra ADDR <<< "$BINDIR"
POS=$((${#ADDR[@]} - 2))
DIR=${ADDR[$POS]}

docker exec -it "${DIR}_$1_1" /bin/bash
docker exec -it "${DIR}-$1-1" /bin/bash || docker exec -it "${DIR}-$1-1" /bin/sh

0 comments on commit 5bbd9ed

Please sign in to comment.