[zsh][mmaret-geny]remove lollidocker function
Use sdocker instead
This commit is contained in:
parent
fb60eb255f
commit
092f3cb92f
@ -1,20 +0,0 @@
|
||||
lollidocker (){
|
||||
if [ -n "$SSH_AUTH_SOCK" ]; then
|
||||
SSH_AUTH_ARGS="-v $SSH_AUTH_SOCK:/tmp/ssh_auth -e SSH_AUTH_SOCK=/tmp/ssh_auth"
|
||||
fi
|
||||
AOSP_ARGS=${AOSP_ARGS:--it}
|
||||
img=$(docker ps | grep lollipop | awk '{print $1}');
|
||||
if [ -z $img ]; then
|
||||
img=$(docker ps -a | grep lollipop | awk '{print $1}') | head -1;
|
||||
if [ -z $img ]; then
|
||||
echo "Running a new container"
|
||||
echo "docker run $AOSP_ARGS $SSH_AUTH_ARGS -v /home/mmaret/Project:/aosp/Project -i -t lollipop"
|
||||
else
|
||||
echo "Starting $img"
|
||||
docker start -i -a $img
|
||||
fi
|
||||
else
|
||||
echo "Attach to $img"
|
||||
docker exec -it $img /bin/bash
|
||||
fi
|
||||
}
|
Loading…
Reference in New Issue
Block a user