You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spark.apache.org by rx...@apache.org on 2014/07/30 22:43:26 UTC

git commit: Wrap JAR_DL in dev/check-license.

Repository: spark
Updated Branches:
  refs/heads/master 94d1f46fc -> 7c7ce5452


Wrap JAR_DL in dev/check-license.


Project: http://git-wip-us.apache.org/repos/asf/spark/repo
Commit: http://git-wip-us.apache.org/repos/asf/spark/commit/7c7ce545
Tree: http://git-wip-us.apache.org/repos/asf/spark/tree/7c7ce545
Diff: http://git-wip-us.apache.org/repos/asf/spark/diff/7c7ce545

Branch: refs/heads/master
Commit: 7c7ce54522015315c909e111d6c2cff83e9fb501
Parents: 94d1f46
Author: Reynold Xin <rx...@apache.org>
Authored: Wed Jul 30 13:42:43 2014 -0700
Committer: Reynold Xin <rx...@apache.org>
Committed: Wed Jul 30 13:43:17 2014 -0700

----------------------------------------------------------------------
 dev/check-license | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/spark/blob/7c7ce545/dev/check-license
----------------------------------------------------------------------
diff --git a/dev/check-license b/dev/check-license
index 00bb20c..625ec16 100755
--- a/dev/check-license
+++ b/dev/check-license
@@ -32,9 +32,9 @@ acquire_rat_jar () {
     printf "Attempting to fetch rat\n"
     JAR_DL=${JAR}.part
     if hash curl 2>/dev/null; then
-      (curl --progress-bar ${URL1} > ${JAR_DL} || curl --progress-bar ${URL2} > ${JAR_DL}) && mv ${JAR_DL} ${JAR}
+      (curl --progress-bar ${URL1} > "$JAR_DL" || curl --progress-bar ${URL2} > "$JAR_DL") && mv "$JAR_DL" "$JAR"
     elif hash wget 2>/dev/null; then
-      (wget --progress=bar ${URL1} -O ${JAR_DL} || wget --progress=bar ${URL2} -O ${JAR_DL}) && mv ${JAR_DL} ${JAR}
+      (wget --progress=bar ${URL1} -O "$JAR_DL" || wget --progress=bar ${URL2} -O "$JAR_DL") && mv "$JAR_DL" "$JAR"
     else
       printf "You do not have curl or wget installed, please install rat manually.\n"
       exit -1