summaryrefslogtreecommitdiff
path: root/desktop/scripts/unoinfo.sh
diff options
context:
space:
mode:
Diffstat (limited to 'desktop/scripts/unoinfo.sh')
-rwxr-xr-xdesktop/scripts/unoinfo.sh12
1 files changed, 7 insertions, 5 deletions
diff --git a/desktop/scripts/unoinfo.sh b/desktop/scripts/unoinfo.sh
index bf5b14f917e3..4e660624bfb7 100755
--- a/desktop/scripts/unoinfo.sh
+++ b/desktop/scripts/unoinfo.sh
@@ -22,12 +22,14 @@ set -e
# resolve installation directory
sd_res="$0"
while [ -h "$sd_res" ] ; do
- cd "`dirname "$sd_res"`"
- sd_basename=`basename "$sd_res"`
- sd_res=`ls -l "$sd_basename" | sed "s/.*$sd_basename -> //g"`
+ sd_dirname=$(dirname "$sd_res")
+ cd "$sd_dirname"
+ sd_basename=$(basename "$sd_res")
+ sd_res=$(ls -l "$sd_basename" | sed "s/.*$sd_basename -> //g")
done
-cd "`dirname "$sd_res"`"
-sd_prog=`pwd`
+sd_dirname=$(dirname "$sd_res")
+cd "$sd_dirname"
+sd_prog=$(pwd)
case "$1" in
c++)