diff --git a/bin/attach b/bin/attach index 338cf1530..c8a6e31ef 100755 --- a/bin/attach +++ b/bin/attach @@ -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