git » java-common.git » commit 99e7f41

Fix FS#41814 add missing double quotes on current JDK check

author Guillaume Alaux
2014-09-04 13:50:20 UTC
committer Guillaume Alaux
2014-09-04 13:50:20 UTC
parent 6a482b121af2a0a84597deb48746977cb605fb79

Fix FS#41814 add missing double quotes on current JDK check

PKGBUILD +1 -1
install_java-common.sh +1 -1

diff --git a/PKGBUILD b/PKGBUILD
index 6bcf89a..4fdce2f 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,7 +1,7 @@
 # Maintainer: Guillaume ALAUX <guillaume@archlinux.org>
 pkgname=java-common
 pkgver=1
-pkgrel=6
+pkgrel=7
 pkgdesc='Common files for Java Environments'
 arch=('any')
 url='www.archlinux.org'
diff --git a/install_java-common.sh b/install_java-common.sh
index f1ab2f9..203dcc0 100644
--- a/install_java-common.sh
+++ b/install_java-common.sh
@@ -22,7 +22,7 @@ set_default_link_to() {
 
 pre_install() {
   _curr_def=$(readlink ${OLD_DEFAULT_PATH} && true)
-  if [ -n ${_curr_def} ]; then
+  if [ -n "${_curr_def}" ]; then
     unlink ${OLD_DEFAULT_PATH} > /dev/null 2>&1
     ln -sf ${DEFAULT_NAME} ${OLD_DEFAULT_PATH}