From 5062bfaddd880a370c865928e08ef30592b97206 Mon Sep 17 00:00:00 2001 From: aerkefiende Date: Sun, 27 Mar 2011 16:15:31 +0000 Subject: [PATCH] fixed quotations git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6145 e016b1c5-ed68-44aa-a2f7-31cac88cffde --- install.sh | 38 +++++++++++++++++++------------------- server.sh | 8 ++++---- 2 files changed, 23 insertions(+), 23 deletions(-) diff --git a/install.sh b/install.sh index a8216890..f99dab1a 100755 --- a/install.sh +++ b/install.sh @@ -2,16 +2,16 @@ #Configures the environment for the *nix users. ac_version=1.1.0.5 -ac_dir=$(dirname $(readlink -f "${0}")) +ac_dir=$(dirname "$(readlink -f "${0}")") ac_exec=assaultcube.sh ac_menupath=~/.local/share/applications ac_desktoppath=~/Desktop ac_entryfile=assaultcube.desktop -ac_desktop="undefined" +ac_desktop=undefined GetDesktop() { - case ${DESKTOP_SESSION} in + case "${DESKTOP_SESSION}" in gnome) ac_desktop="Gnome" ;; @@ -22,7 +22,7 @@ GetDesktop() } existDesktopEntry() { - if [ -f ${ac_desktoppath}/${ac_entryfile} ]; then + if [ -f "${ac_desktoppath}/${ac_entryfile}" ]; then ac_existdesktopentry="X" else ac_existdesktopentry=" " @@ -30,7 +30,7 @@ existDesktopEntry() } existMenuEntry() { - if [ -f ${ac_menupath}/${ac_entryfile} ]; then + if [ -f "${ac_menupath}/${ac_entryfile}" ]; then ac_existmenuentry="X" else ac_existmenuentry=" " @@ -42,8 +42,8 @@ existProtocol() } installDesktopEntry() { - mkdir -pv ${ac_desktoppath} - cat > ${ac_desktoppath}/${ac_entryfile} < "${ac_desktoppath}/${ac_entryfile}" < ${ac_menupath}/${ac_entryfile} < "${ac_menupath}/${ac_entryfile}" <