1
0
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:
Joe Groocock 2016-08-12 16:14:58 +01:00
parent 7548150a08
commit dc1b6f3f69

View File

@ -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'