diff options
Diffstat (limited to 'meta')
-rw-r--r-- | meta/classes/populate_sdk_base.bbclass | 13 | ||||
-rwxr-xr-x | meta/recipes-devtools/installer/adt-installer/adt_installer | 13 |
2 files changed, 18 insertions, 8 deletions
diff --git a/meta/classes/populate_sdk_base.bbclass b/meta/classes/populate_sdk_base.bbclass index e5bc0b409d..31e848dd62 100644 --- a/meta/classes/populate_sdk_base.bbclass +++ b/meta/classes/populate_sdk_base.bbclass | |||
@@ -181,11 +181,16 @@ else | |||
181 | echo "$target_sdk_dir" | 181 | echo "$target_sdk_dir" |
182 | fi | 182 | fi |
183 | 183 | ||
184 | eval target_sdk_dir=$target_sdk_dir | 184 | eval target_sdk_dir=$(printf "%q" "$target_sdk_dir") |
185 | if [ -d $target_sdk_dir ]; then | 185 | if [ -d "$target_sdk_dir" ]; then |
186 | target_sdk_dir=$(cd $target_sdk_dir; pwd) | 186 | target_sdk_dir=$(cd "$target_sdk_dir"; pwd) |
187 | else | 187 | else |
188 | target_sdk_dir=$(readlink -m $target_sdk_dir) | 188 | target_sdk_dir=$(readlink -m "$target_sdk_dir") |
189 | fi | ||
190 | |||
191 | if [ -n "$(echo $target_sdk_dir|grep ' ')" ]; then | ||
192 | echo "The target directory path ($target_sdk_dir) contains spaces. Abort!" | ||
193 | exit 1 | ||
189 | fi | 194 | fi |
190 | 195 | ||
191 | if [ -e "$target_sdk_dir/environment-setup-${REAL_MULTIMACH_TARGET_SYS}" ]; then | 196 | if [ -e "$target_sdk_dir/environment-setup-${REAL_MULTIMACH_TARGET_SYS}" ]; then |
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 |