Commit aa801bb9 authored by Тимофей Смирнов's avatar Тимофей Смирнов Committed by amegami

add shell selection for podman and docker

parent 2447aa25
...@@ -157,9 +157,13 @@ case $CMD in ...@@ -157,9 +157,13 @@ case $CMD in
;; ;;
enter) # HELPCMD: enter in a container with ID enter) # HELPCMD: enter in a container with ID
ID="$1" ID="$1"
SHELL="$2"
shift shift
showcmd docker exec -ti $SETLANG "$ID" bash if [ -z "$SHELL"]; then
a= docker exec -ti $SETLANG "$ID" bash SHELL="bash"
fi
showcmd podman exec -ti $SETLANG "$ID" "$SHELL"
a= podman exec -ti $SETLANG "$ID" "$SHELL"
;; ;;
log|logs) # HELPCMD: print container log log|logs) # HELPCMD: print container log
docmd docker logs "$1" docmd docker logs "$1"
......
...@@ -157,9 +157,13 @@ case $CMD in ...@@ -157,9 +157,13 @@ case $CMD in
;; ;;
enter) # HELPCMD: enter in a container with ID enter) # HELPCMD: enter in a container with ID
ID="$1" ID="$1"
SHELL="$2"
shift shift
showcmd podman exec -ti $SETLANG "$ID" bash if [ -z "$SHELL"]; then
a= podman exec -ti $SETLANG "$ID" bash SHELL="bash"
fi
showcmd podman exec -ti $SETLANG "$ID" "$SHELL"
a= podman exec -ti $SETLANG "$ID" "$SHELL"
;; ;;
log|logs) # HELPCMD: print container log log|logs) # HELPCMD: print container log
docmd podman logs "$1" docmd podman logs "$1"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment