From b94c22919e04f88bf916dff857a74b86e8048865 Mon Sep 17 00:00:00 2001 From: Kate Ting Date: Sat, 9 Mar 2013 09:17:47 -0500 Subject: [PATCH] SQOOP-958: Fix white space handling when generating version info (Abraham Elmahrek via Kate Ting) --- common/pom.xml | 2 +- common/src/saveVersion.sh | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/common/pom.xml b/common/pom.xml index 2ab9073c..2921800a 100644 --- a/common/pom.xml +++ b/common/pom.xml @@ -59,7 +59,7 @@ limitations under the License. - + diff --git a/common/src/saveVersion.sh b/common/src/saveVersion.sh index 31d3a334..2fc7be4b 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 < "$outputFile" <