[sdocker] Check number of arg
This commit is contained in:
parent
027ae8d29b
commit
c7e93be465
@ -167,6 +167,12 @@ apush() {
|
|||||||
sdocker (){
|
sdocker (){
|
||||||
DOCKER_SSH_AUTH=$HOME/docker_ssh_auth
|
DOCKER_SSH_AUTH=$HOME/docker_ssh_auth
|
||||||
AOSP_IMAGE=${AOSP_IMAGE:-$HOME/Project}
|
AOSP_IMAGE=${AOSP_IMAGE:-$HOME/Project}
|
||||||
|
|
||||||
|
if [ $# -eq 0 ]; then
|
||||||
|
echo "Usage: $0 DOCKER_IMAGE_NAME"
|
||||||
|
return
|
||||||
|
fi
|
||||||
|
|
||||||
if [ -n "$SSH_AUTH_SOCK" ]; then
|
if [ -n "$SSH_AUTH_SOCK" ]; then
|
||||||
$(ls -l $HOME/docker_ssh_auth 2> /dev/null | grep $SSH_AUTH_SOCK > /dev/null)
|
$(ls -l $HOME/docker_ssh_auth 2> /dev/null | grep $SSH_AUTH_SOCK > /dev/null)
|
||||||
if [ $? ];
|
if [ $? ];
|
||||||
|
Loading…
Reference in New Issue
Block a user