sqoop-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kathl...@apache.org
Subject git commit: SQOOP-958: Fix white space handling when generating version info (Abraham Elmahrek via Kate Ting)
Date Thu, 21 Mar 2013 02:23:17 GMT
Updated Branches:
  refs/heads/sqoop2 7177b0bc2 -> b94c22919 (forced update)


SQOOP-958: Fix white space handling when generating version info
(Abraham Elmahrek via Kate Ting)


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

Branch: refs/heads/sqoop2
Commit: b94c22919e04f88bf916dff857a74b86e8048865
Parents: 3d9aaa0
Author: Kate Ting <kathleen@apache.org>
Authored: Sat Mar 9 09:17:47 2013 -0500
Committer: Kate <kathleen@apache.org>
Committed: Sat Mar 9 09:28:08 2013 -0500

----------------------------------------------------------------------
 common/pom.xml            |    2 +-
 common/src/saveVersion.sh |    6 +++---
 2 files changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/sqoop/blob/b94c2291/common/pom.xml
----------------------------------------------------------------------
diff --git a/common/pom.xml b/common/pom.xml
index 2ab9073..2921800 100644
--- a/common/pom.xml
+++ b/common/pom.xml
@@ -59,7 +59,7 @@ limitations under the License.
               <target>
                 <mkdir dir="${project.build.directory}/generated-sources/java"/>
                 <exec executable="sh">
-                  <arg line="${basedir}/src/saveVersion.sh ${project.version} ${project.build.directory}/generated-sources/java"/>
+                  <arg line="'${basedir}/src/saveVersion.sh' ${project.version} '${project.build.directory}/generated-sources/java'"/>
                 </exec>
               </target>
             </configuration>

http://git-wip-us.apache.org/repos/asf/sqoop/blob/b94c2291/common/src/saveVersion.sh
----------------------------------------------------------------------
diff --git a/common/src/saveVersion.sh b/common/src/saveVersion.sh
index 31d3a33..2fc7be4 100755
--- a/common/src/saveVersion.sh
+++ b/common/src/saveVersion.sh
@@ -29,7 +29,7 @@ date=`date`
 cwd=`pwd`
 
 # Exit if target file already exists
-if [ -e $outputFile ]; then
+if [ -e "$outputFile" ]; then
   exit 0
 fi
 
@@ -45,8 +45,8 @@ else
   revision="Unknown"
   url="file://$cwd"
 fi
-mkdir -p $outputDirectory
-cat > $outputFile <<EOF
+mkdir -p "$outputDirectory"
+cat > "$outputFile" <<EOF
 /*
  * Generated by src/saveVersion.sh
  */


Mime
View raw message