felix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gno...@apache.org
Subject svn commit: r953286 - /felix/trunk/karaf/assembly/src/main/distribution/unix-shell/bin/karaf
Date Thu, 10 Jun 2010 11:40:22 GMT
Author: gnodet
Date: Thu Jun 10 11:40:21 2010
New Revision: 953286

URL: http://svn.apache.org/viewvc?rev=953286&view=rev
Log:
FELIX-2360: Error message from bin/karaf script

Modified:
    felix/trunk/karaf/assembly/src/main/distribution/unix-shell/bin/karaf

Modified: felix/trunk/karaf/assembly/src/main/distribution/unix-shell/bin/karaf
URL: http://svn.apache.org/viewvc/felix/trunk/karaf/assembly/src/main/distribution/unix-shell/bin/karaf?rev=953286&r1=953285&r2=953286&view=diff
==============================================================================
--- felix/trunk/karaf/assembly/src/main/distribution/unix-shell/bin/karaf (original)
+++ felix/trunk/karaf/assembly/src/main/distribution/unix-shell/bin/karaf Thu Jun 10 11:40:21
2010
@@ -151,9 +151,9 @@ pathCanonicalSimple() {
 
 pathCanonical() {
 	local dst=`pathCanonicalSimple "${1}"`
-	while [[ -h "${dst}" ]]; do
+	while [ -h "${dst}" ]; do
 		local linkDst="$(ls -l "${dst}" | sed -e 's/^.*[[:space:]]*->[[:space:]]*\(.*\)[[:space:]]*$/\1/g')"
-		if [[ -z "$(echo "${linkDst}" | grep -E '^/')" ]]; then
+		if [ -z "$(echo "${linkDst}" | grep -E '^/')" ]; then
 			# relative link destination
 			linkDst="$(dirname "${dst}")/${linkDst}"
 		fi



Mime
View raw message