mirror of
https://github.com/frebib/dotfiles.git
synced 2024-06-14 12:57:23 +00:00
Fix dsh with no user parameter and remove logging statement
This commit is contained in:
parent
7548150a08
commit
dc1b6f3f69
5
aliases
5
aliases
@ -137,11 +137,10 @@ dsh() {
|
|||||||
usercmd=""
|
usercmd=""
|
||||||
else
|
else
|
||||||
host=`echo $1 | cut -d'@' -f2 -s`
|
host=`echo $1 | cut -d'@' -f2 -s`
|
||||||
usercmd="--user=$user"
|
usercmd="--user=$user "
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "docker exec -ti $usercmd $host /bin/sh"
|
eval "docker exec -ti $usercmd$host /bin/sh"
|
||||||
docker exec -ti "$usercmd" "$host" /bin/sh
|
|
||||||
}
|
}
|
||||||
|
|
||||||
alias dm='docker-machine'
|
alias dm='docker-machine'
|
||||||
|
Loading…
Reference in New Issue
Block a user