Skip to content
This repository has been archived by the owner on Feb 27, 2018. It is now read-only.

Commit

Permalink
Merge pull request #25 from boot2docker/more-path-munging
Browse files Browse the repository at this point in the history
Dealing with both windows and unix paths in msys is still no-fun
  • Loading branch information
Sven Dowideit authored and Sven Dowideit committed Jul 10, 2014
2 parents 4df194f + 86a9e17 commit 544d66c
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions start.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
#!sh
#!/bin/bash.exe

# simplify by adding the program dir to the path
B2DPATH=$(echo "$0" | tr '\\' '/')
# convert backslash paths to forward slash (yes, really, sometimes you get either)
B2DPATH=${0//\\/\//}
# remove the script-name
B2DPATH=${B2DPATH%/*}
echo "B2DPATH=$B2DPATH"
# convert any C:/ into /c/ as MSYS needs this form
B2DPATH=${B2DPATH//C:\//\/c/}
# simplify by adding the program dir to the path
PATH="$B2DPATH:$PATH"

ISO="$USERPROFILE/.boot2docker/boot2docker.iso"
Expand Down

0 comments on commit 544d66c

Please sign in to comment.