View | Details | Raw Unified | Return to issue 39367
Collapse All | Expand All

(-)soffice~ (-8 / +7 lines)
Lines 68-86 Link Here
68
68
69
# resolve installation directory
69
# resolve installation directory
70
sd_cwd="`pwd`"
70
sd_cwd="`pwd`"
71
if [ -h "$0" ] ; then
71
sd_script="$0"
72
	sd_basename=`basename "$0"`
72
while [ -h "$sd_script" ] ; do
73
 	sd_script=`ls -l "$0" | sed "s/.*${sd_basename} -> //g"` 
73
	sd_basename=`basename "$sd_script"`
74
    cd "`dirname "$0"`"
74
 	sd_script=`ls -l "$sd_script" | sed "s/.*${sd_basename} -> //g"` 
75
    cd "`dirname "$sd_script"`"
75
    cd "`dirname "$sd_script"`"
76
else
76
    cd "`dirname "$sd_script"`"
77
    cd "`dirname "$0"`"
77
done
78
fi
79
78
80
sd_prog="`pwd`"
79
sd_prog="`pwd`"
81
80
82
cd ..
81
cd ..
83
sd_binary=`basename "$0"`".bin"
82
sd_binary=`basename "$sd_script"`".bin"
84
sd_inst="`pwd`"
83
sd_inst="`pwd`"
85
84
86
# change back directory
85
# change back directory

Return to issue 39367