Explorar el Código

avoid warning, when dir contains spaces

Waldemar Brodkorb hace 13 años
padre
commit
3b9c4ca7bf
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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"