summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/installer
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-devtools/installer')
-rwxr-xr-xmeta/recipes-devtools/installer/adt-installer/adt_installer13
1 files changed, 9 insertions, 4 deletions
diff --git a/meta/recipes-devtools/installer/adt-installer/adt_installer b/meta/recipes-devtools/installer/adt-installer/adt_installer
index c0123913ef..58728afd63 100755
--- a/meta/recipes-devtools/installer/adt-installer/adt_installer
+++ b/meta/recipes-devtools/installer/adt-installer/adt_installer
@@ -339,11 +339,16 @@ if [ "$INSTALL_FOLDER" = "" ]; then
339 INSTALL_FOLDER=$DEFAULT_INSTALL_FOLDER 339 INSTALL_FOLDER=$DEFAULT_INSTALL_FOLDER
340fi 340fi
341 341
342eval INSTALL_FOLDER=$INSTALL_FOLDER 342eval INSTALL_FOLDER=$(printf "%q" "$INSTALL_FOLDER")
343if [ -d $INSTALL_FOLDER ]; then 343if [ -d "$INSTALL_FOLDER" ]; then
344 export INSTALL_FOLDER=$(cd $INSTALL_FOLDER; pwd) 344 export INSTALL_FOLDER=$(cd "$INSTALL_FOLDER"; pwd)
345else 345else
346 export INSTALL_FOLDER=$(readlink -m $INSTALL_FOLDER) 346 export INSTALL_FOLDER=$(readlink -m "$INSTALL_FOLDER")
347fi
348
349if [ -n "$(echo $INSTALL_FOLDER|grep ' ')" ]; then
350 echo "The target directory path ($INSTALL_FOLDER) contains spaces. Abort!"
351 exit 1
347fi 352fi
348 353
349clear 354clear