diff options
author | Antti Tanhuanpää <antti@vaadin.com> | 2014-06-17 16:43:38 +0300 |
---|---|---|
committer | Vaadin Code Review <review@vaadin.com> | 2014-06-18 07:18:53 +0000 |
commit | 62e61aff013ea53e255bba0a633b162a74aade24 (patch) | |
tree | 83236410195dd052c5a36c60e3f37c60f5b588bf /scripts | |
parent | 26f74f5b45dc5d7c2646b792d1ac12851eed1285 (diff) | |
download | vaadin-framework-62e61aff013ea53e255bba0a633b162a74aade24.tar.gz vaadin-framework-62e61aff013ea53e255bba0a633b162a74aade24.zip |
install-local-maven.sh: use proper quoting
Change-Id: Iddcd438431d9c5f1f8ec7208d44a3602e183e160
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/install-local-maven.sh | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/scripts/install-local-maven.sh b/scripts/install-local-maven.sh index 2883258808..f36b603db9 100755 --- a/scripts/install-local-maven.sh +++ b/scripts/install-local-maven.sh @@ -10,31 +10,31 @@ fi for base in * do - if [ ! -d $base ] + if [ ! -d "$base" ] then continue fi - pushd $base - version=`ls $base-*.pom|sed "s/$base-//"|sed "s/.pom//"` + pushd "$base" + version=`ls "$base"-*.pom|sed "s/$base-//"|sed "s/.pom//"` pomTemplate="$base-$version.pom" if [ -e "$pomTemplate" ] then - id=$base-$version - pomFile=$pomTemplate-modified - file=$id.jar - javadocFile=$id-javadoc.jar - sourcesFile=$id-sources.jar + id="$base-$version" + pomFile="$pomTemplate-modified" + file="$id.jar" + javadocFile="$id-javadoc.jar" + sourcesFile="$id-sources.jar" # Install using real version for easy testing - cat $pomTemplate|sed "s/<version>7.*-SNAPSHOT</<version>$version</g" > $pomFile + cat "$pomTemplate"|sed "s/<version>7.*-SNAPSHOT</<version>$version</g" > "$pomFile" echo "Installing $base $version..." if [ -e "$javadocFile" ] then - mvn org.apache.maven.plugins:maven-install-plugin:2.5.1:install-file -DpomFile=$pomFile -Djavadoc=$javadocFile -Dsources=$sourcesFile -Dfile=$file + mvn org.apache.maven.plugins:maven-install-plugin:2.5.1:install-file -DpomFile="$pomFile" -Djavadoc="$javadocFile" -Dsources="$sourcesFile" -Dfile="$file" else - mvn org.apache.maven.plugins:maven-install-plugin:2.5.1:install-file -DpomFile=$pomFile -Dfile=$file + mvn org.apache.maven.plugins:maven-install-plugin:2.5.1:install-file -DpomFile="$pomFile" -Dfile="$file" fi fi popd |