|
@ -21,7 +21,6 @@ docker start $CONTAINER_NAME > /dev/null 2> /dev/null || { |
|
|
echo "Creating new container..." |
|
|
echo "Creating new container..." |
|
|
docker run \ |
|
|
docker run \ |
|
|
--detach \ |
|
|
--detach \ |
|
|
--env HOME=$HOME \ |
|
|
|
|
|
--name $CONTAINER_NAME \ |
|
|
--name $CONTAINER_NAME \ |
|
|
--volume $REPOROOT:$HOME/termux-packages \ |
|
|
--volume $REPOROOT:$HOME/termux-packages \ |
|
|
--tty \ |
|
|
--tty \ |
|
@ -39,9 +38,9 @@ docker start $CONTAINER_NAME > /dev/null 2> /dev/null || { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
if [ "$#" -eq "0" ]; then |
|
|
if [ "$#" -eq "0" ]; then |
|
|
docker exec --interactive --tty --user $USER $CONTAINER_NAME bash |
|
|
docker exec --interactive --tty $CONTAINER_NAME bash |
|
|
else |
|
|
else |
|
|
docker exec --interactive --tty --user $USER $CONTAINER_NAME $@ |
|
|
docker exec --interactive --tty $CONTAINER_NAME $@ |
|
|
fi |
|
|
fi |
|
|
|
|
|
|
|
|
|
|
|
|
|
|