From f2b1a84d790572e005a21e1e10afcb78949c7616 Mon Sep 17 00:00:00 2001 From: "minkee.lee" Date: Wed, 2 Sep 2015 15:20:34 +0900 Subject: [PATCH] install: add double quotes to file path. - add double quotes to file path in install/remove script. Change-Id: I6dd97d40f19317e9ac224c53671ebf268814beea Signed-off-by: minkee.lee --- package/emulator-manager.install.linux | 6 +++--- package/emulator-manager.install.macos-64 | 2 +- package/emulator-manager.remove.linux | 6 +++--- package/emulator-manager.remove.macos-64 | 2 +- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/package/emulator-manager.install.linux b/package/emulator-manager.install.linux index 5f17c9f..1ec42d6 100755 --- a/package/emulator-manager.install.linux +++ b/package/emulator-manager.install.linux @@ -5,7 +5,7 @@ desktoppath=~/.local/share/applications ## Do not modify the followings (Make desktop menu) TIZEN_SDK_INSTALL_PATH=${INSTALLED_PATH} -if [ -z $TIZEN_SDK_INSTALL_PATH ] +if [ -z "$TIZEN_SDK_INSTALL_PATH" ] then exit 2; fi @@ -19,9 +19,9 @@ em_exepath=${TIZEN_SDK_INSTALL_PATH}/$em_exefile em_comment="Emulator manager of Tizen SDK is a tool which controls Virtual Machines." em_name="Emulator Manager" -if [ -e ${MAKESHORTCUT_PATH} ] +if [ -e "${MAKESHORTCUT_PATH}" ] then - ${MAKESHORTCUT_PATH} \ + "${MAKESHORTCUT_PATH}" \ -f "${em_desktopfile}" \ -e "${em_exepath}" \ -i "${em_iconpath}/$em_iconfile" \ diff --git a/package/emulator-manager.install.macos-64 b/package/emulator-manager.install.macos-64 index 6d9eed2..69490ad 100644 --- a/package/emulator-manager.install.macos-64 +++ b/package/emulator-manager.install.macos-64 @@ -5,7 +5,7 @@ INSTALLED_APP_DIR_MACOS=${INSTALLED_PATH}/tools/emulator/bin/emulator-manager.ap ##create 'Emulator Manager' shortcut if [ "$MAKESHORTCUT_PATH" != "" ]; then -${MAKESHORTCUT_PATH} \ +"${MAKESHORTCUT_PATH}" \ -t "${SHORTCUT_DIR_PATH_MACOS}" \ -s "${INSTALLED_APP_DIR_MACOS}" \ -in "${INSTALLED_DIR_NAME}" diff --git a/package/emulator-manager.remove.linux b/package/emulator-manager.remove.linux index 73ac5a8..2bb3100 100755 --- a/package/emulator-manager.remove.linux +++ b/package/emulator-manager.remove.linux @@ -2,7 +2,7 @@ desktoppath=~/.local/share/applications ## Register .desktop file -${REMOVE_SHORTCUT} $desktoppath/tizen-sdk-em.desktop +"${REMOVE_SHORTCUT}" "$desktoppath/tizen-sdk-em.desktop" ### END Register Menu ### ## Remove icon file ## @@ -11,11 +11,11 @@ rm -f ~/.local/share/icons/em.ico ## Remove $user.lock file TIZEN_SDK_INSTALL_PATH=`echo $INSTALLED_PATH` -if [ -z $TIZEN_SDK_INSTALL_PATH ] +if [ -z "$TIZEN_SDK_INSTALL_PATH" ] then # echo "There is no TIZEN_SDK_PATH ENV" >> /tmp/emulator.log exit 2; fi #echo $TIZEN_SDK_INSTALL_PATH/tools/emulator/bin/.$USER.lock -rm -f $TIZEN_SDK_INSTALL_PATH/tools/emulator/bin/.$USER.lock +rm -f "$TIZEN_SDK_INSTALL_PATH/tools/emulator/bin/.$USER.lock" diff --git a/package/emulator-manager.remove.macos-64 b/package/emulator-manager.remove.macos-64 index b499008..f1b86af 100644 --- a/package/emulator-manager.remove.macos-64 +++ b/package/emulator-manager.remove.macos-64 @@ -5,7 +5,7 @@ APP_NAME=emulator-manager ##remove 'Emulator Manager' shortcut if [ "$REMOVE_SHORTCUT" != "" ]; then -${REMOVE_SHORTCUT} \ +"${REMOVE_SHORTCUT}" \ -t "${SHORTCUT_DIR_PATH_MACOS}" \ -in "${INSTALLED_DIR_NAME}" \ -an "${APP_NAME}" -- 2.7.4