|
|
@ -5,12 +5,14 @@ if [[ -z $1 || $1 == "-h" || $1 == "--help" ]]; then |
|
|
|
|
|
|
|
Runs a bash shell on the given container. If second argument is |
|
|
|
omitted, an interactive login shell is launched. If second argument |
|
|
|
is given, the string is interpreted as a command and executed." |
|
|
|
is given, the string is interpreted as a command and executed directly. |
|
|
|
To ensure that any shell syntax is evaluated in the container shell |
|
|
|
instead of the local shell, wrap your command in single quotes." |
|
|
|
exit 1 |
|
|
|
fi |
|
|
|
|
|
|
|
if [[ -z $2 ]]; then |
|
|
|
podman exec -it $1 bash -l |
|
|
|
else |
|
|
|
podman exec -it $1 bash -c "$2" |
|
|
|
podman exec -it $1 bash -c "${*:2}" |
|
|
|
fi |
|
|
|