Browse Source

[sdocker] Check nb of args

kitkat
Mathieu Maret 6 years ago
parent
commit
3067dc2cc3
1 changed files with 6 additions and 0 deletions
  1. +6
    -0
      sdocker

+ 6
- 0
sdocker View File

@ -1,6 +1,12 @@
sdocker (){
DOCKER_SSH_AUTH=$HOME/docker_ssh_auth
AOSP_IMAGE=${AOSP_IMAGE:-$HOME/Project}
if [ $# -eq 0 ]; then
echo "Usage: $0 DOCKER_IMAGE_NAME"
return
fi
if [ -n "$SSH_AUTH_SOCK" ]; then
$(ls -l $HOME/docker_ssh_auth 2> /dev/null | grep $SSH_AUTH_SOCK > /dev/null)
if [ $? ];


Loading…
Cancel
Save