Skip to content
This repository has been archived by the owner on Sep 26, 2021. It is now read-only.

Commit

Permalink
Merge pull request #440 from 6uliver/master
Browse files Browse the repository at this point in the history
Pass start.sh first argument as a command for bash
  • Loading branch information
nathanleclaire committed Mar 18, 2016
2 parents f6fd2a3 + c35033b commit 530061b
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion windows/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -78,4 +78,10 @@ docker () {
}
export -f docker

exec "${BASH}" --login -i
if [ $# -eq 0 ]; then
echo "Start interactive shell"
exec "$BASH" --login -i
else
echo "Start shell with command"
exec "$BASH" -c "$*"
fi

0 comments on commit 530061b

Please sign in to comment.