summaryrefslogtreecommitdiffstats
path: root/tools/installer
diff options
context:
space:
mode:
authorSebastian Schmelzer2011-05-11 12:24:47 +0200
committerSebastian Schmelzer2011-05-11 12:24:47 +0200
commit065e45bff6ac791350ffc0a434ae4c0452585959 (patch)
tree9812b1c8a3631f03e5237dea3865bb50b47f3de0 /tools/installer
parentFormal steps to incorporate new distro versions ... (see wiki) (diff)
downloadcore-065e45bff6ac791350ffc0a434ae4c0452585959.tar.gz
core-065e45bff6ac791350ffc0a434ae4c0452585959.tar.xz
core-065e45bff6ac791350ffc0a434ae4c0452585959.zip
update installer FIX #765
update suse distroinfo helper script update suse distroinfo FIX #733
Diffstat (limited to 'tools/installer')
-rwxr-xr-xtools/installer7
1 files changed, 6 insertions, 1 deletions
diff --git a/tools/installer b/tools/installer
index 6010b1e2..f974c82c 100755
--- a/tools/installer
+++ b/tools/installer
@@ -5,7 +5,12 @@
# determin distribution
-DISTRO=$(lsb_release -i| sed 's/^[^:]*:\t//' | tr '[:upper:]' '[:lower:]')
+if [ ! -z $(which lsb_release) ]; then
+ DISTRO=$(lsb_release -i| sed 's/^[^:]*:\t//' | tr '[:upper:]' '[:lower:]')
+else
+ # Can't determin distro version..
+ DISTRO=""
+fi
# get/set default paths
[ -z $USR_BIN_PATH ] && USR_BIN_PATH=/usr/bin