Browse Source

avoid warning, when dir contains spaces

Waldemar Brodkorb 13 years ago
parent
commit
3b9c4ca7bf
1 changed files with 1 additions and 1 deletions
  1. 1 1
      scripts/reloc.sh

+ 1 - 1
scripts/reloc.sh

@@ -4,7 +4,7 @@
 olddir=$(grep "^TOPDIR" prereq.mk 2>/dev/null |cut -d '=' -f 2)
 newdir=$(pwd)
 
-if [ ! -z $olddir ];then
+if [ ! -z "$olddir" ];then
   if [ "$olddir" != "$newdir" ];then
 	echo "adk directory relocated!"
 	echo "old directory: $olddir"