Skip to content

Commit

Permalink
Fixed absolute path support.
Browse files Browse the repository at this point in the history
  • Loading branch information
fryckbos committed Oct 14, 2016
1 parent 50c695c commit e007e00
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,10 @@ function run {
VOLUMES=""
if [ -e $VOLUMEFILE ]; then
for ENTRY in $(<$VOLUMEFILE); do
VOLUMES="${VOLUMES}-v `realpath ${ENTRY}` "
if [[ "$ENTRY" != "/"* ]]; then
ENTRY=`pwd`/$ENTRY
fi
VOLUMES="${VOLUMES}-v ${ENTRY} "
done
fi

Expand Down

0 comments on commit e007e00

Please sign in to comment.