incubator-blur-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From amccu...@apache.org
Subject [1/2] git commit: Dealing with differences between linux and osx.
Date Wed, 06 Jan 2016 15:42:48 GMT
Repository: incubator-blur
Updated Branches:
  refs/heads/master 20995c815 -> 8fa457748


Dealing with differences between linux and osx.


Project: http://git-wip-us.apache.org/repos/asf/incubator-blur/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-blur/commit/41ebecbe
Tree: http://git-wip-us.apache.org/repos/asf/incubator-blur/tree/41ebecbe
Diff: http://git-wip-us.apache.org/repos/asf/incubator-blur/diff/41ebecbe

Branch: refs/heads/master
Commit: 41ebecbeca183c389d3d0591df6342f498cf09be
Parents: 20995c8
Author: Aaron McCurry <amccurry@gmail.com>
Authored: Wed Jan 6 10:41:21 2016 -0500
Committer: Aaron McCurry <amccurry@gmail.com>
Committed: Wed Jan 6 10:41:21 2016 -0500

----------------------------------------------------------------------
 cdh-parcel/run_parcel_server.sh | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/41ebecbe/cdh-parcel/run_parcel_server.sh
----------------------------------------------------------------------
diff --git a/cdh-parcel/run_parcel_server.sh b/cdh-parcel/run_parcel_server.sh
index 08f17d7..3a31248 100755
--- a/cdh-parcel/run_parcel_server.sh
+++ b/cdh-parcel/run_parcel_server.sh
@@ -36,7 +36,12 @@ MANIFEST="${HTTP_DIR}/manifest.json"
 rm -r $HTTP_DIR
 mkdir $HTTP_DIR
 
-shasum $PARCEL | awk '{print $1}' > $PARCEL_SHA
+if hash sha1sum 2>/dev/null; then
+  sha1sum $PARCEL | awk '{print $1}' > $PARCEL_SHA
+else
+  shasum $PARCEL | awk '{print $1}' > $PARCEL_SHA
+fi
+
 HASH=`cat $PARCEL_SHA`
 echo "{\"lastUpdated\":${LAST_UPDATED},\"parcels\": [" > $MANIFEST
 for DISTRO in el5 el6 sles11 lucid precise trusty squeeze wheezy


Mime
View raw message