Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

replace sha1 cmd with openssl sha1 for better portability

  • Loading branch information...
commit 6ce0f18f3c8b922d6f4f2a27b1629b220c72cdab 1 parent ac6473e
@ryanbrainard ryanbrainard authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 bin/compile
View
6 bin/compile
@@ -28,7 +28,7 @@ for DIR in $CACHED_DIRS; do
rm -rf $DIR
if [ -d $CACHE_DIR/$DIR ]; then
mkdir -p $DIR
- cp -r --no-target-directory $CACHE_DIR/$DIR $DIR
+ cp -r $CACHE_DIR/$DIR/* $DIR
fi
done
@@ -86,7 +86,7 @@ if [ ! -f "$SBT_BINDIR"/"$SBT_JAR" ]; then
fi
## verify SHA1
- FOUND_SHA1=`sha1sum $SBT_JAR | cut -d ' ' -f 1`
+ FOUND_SHA1=`openssl sha1 $SBT_JAR | sed -r "s/^.*= (.*)$/\1/"`
if test "$SBT_SHA1" != "$FOUND_SHA1" ; then
echo " failed"
echo " ! Expected SHA1 \"$SBT_SHA1\" but found \"$FOUND_SHA1\" for $SBT_JAR from $SBT_URL"
@@ -127,5 +127,5 @@ mkdir -p $CACHE_DIR
for DIR in $CACHED_DIRS ; do
rm -rf $CACHE_DIR/$DIR
mkdir -p $CACHE_DIR/$DIR
- cp -r --no-target-directory $DIR $CACHE_DIR/$DIR
+ cp -r $DIR/* $CACHE_DIR/$DIR
done
Please sign in to comment.
Something went wrong with that request. Please try again.