diff options
Diffstat (limited to 'meta/recipes-devtools/installer')
-rwxr-xr-x | meta/recipes-devtools/installer/adt-installer/adt_installer | 13 |
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 |
340 | fi | 340 | fi |
341 | 341 | ||
342 | eval INSTALL_FOLDER=$INSTALL_FOLDER | 342 | eval INSTALL_FOLDER=$(printf "%q" "$INSTALL_FOLDER") |
343 | if [ -d $INSTALL_FOLDER ]; then | 343 | if [ -d "$INSTALL_FOLDER" ]; then |
344 | export INSTALL_FOLDER=$(cd $INSTALL_FOLDER; pwd) | 344 | export INSTALL_FOLDER=$(cd "$INSTALL_FOLDER"; pwd) |
345 | else | 345 | else |
346 | export INSTALL_FOLDER=$(readlink -m $INSTALL_FOLDER) | 346 | export INSTALL_FOLDER=$(readlink -m "$INSTALL_FOLDER") |
347 | fi | ||
348 | |||
349 | if [ -n "$(echo $INSTALL_FOLDER|grep ' ')" ]; then | ||
350 | echo "The target directory path ($INSTALL_FOLDER) contains spaces. Abort!" | ||
351 | exit 1 | ||
347 | fi | 352 | fi |
348 | 353 | ||
349 | clear | 354 | clear |