Skip to content

Commit

Permalink
[FIXED] dlf gemfile directory issues [#160758436 finish]
Browse files Browse the repository at this point in the history
Signed-off-by: Serafima Ostrovskaya <seostrovskaya@pivotal.io>
  • Loading branch information
xtreme-shane-lattanzio authored and Serafima Ostrovskaya committed Sep 26, 2018
1 parent 28e71f7 commit 2db3972
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions dlf
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
#!/bin/bash
if `which docker > /dev/null`; then
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
if [ $# -eq 0 ]; then
docker run -v $PWD:/scan -it licensefinder/license_finder /bin/bash -lc "cd /scan && /bin/bash -l"
docker run -v $DIR:/scan -it licensefinder/license_finder /bin/bash -lc "cd /scan && /bin/bash -l"
else
docker run -v $PWD:/scan -it licensefinder/license_finder /bin/bash -lc "cd /scan && bundle install && `echo $@`"
docker run -v $DIR:/scan -it licensefinder/license_finder /bin/bash -lc "cd /scan && bundle install && `echo $@`"
fi
else
echo "You do not have docker installed. Please install it:"
Expand Down

0 comments on commit 2db3972

Please sign in to comment.