15 lines
304 B
Bash
Executable file
15 lines
304 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
CURRENT=$(pwd)
|
|
BASENAME=$(basename "${CURRENT}")
|
|
# Docker remove dot
|
|
BASENAME="${BASENAME//./}"
|
|
# Lowercase
|
|
BASENAME="${BASENAME,,}"
|
|
|
|
docker exec -u root -ti ${BASENAME}-ERPLibre-1 bash
|
|
|
|
retVal=$?
|
|
if [[ $retVal -ne 0 ]]; then
|
|
docker exec -u root -ti ${BASENAME}_ERPLibre_1 bash
|
|
fi
|