Commit c9bec327 by devttys0

Fixed unbound variable bug in deps.sh

parent 10647c85
...@@ -28,6 +28,7 @@ then ...@@ -28,6 +28,7 @@ then
distro_version="${1:-$(lsb_release -r|cut -f 2|cut -c1-2)}" distro_version="${1:-$(lsb_release -r|cut -f 2|cut -c1-2)}"
else else
distro="${2:-$(lsb_release -i|cut -f 2)}" distro="${2:-$(lsb_release -i|cut -f 2)}"
distro_version="${2:-$(lsb_release -r|cut -f 2|cut -c1-2)}"
fi fi
REQUIRED_UTILS="wget tar python" REQUIRED_UTILS="wget tar python"
APTCMD="apt" APTCMD="apt"
...@@ -154,7 +155,7 @@ then ...@@ -154,7 +155,7 @@ then
fi fi
elif [ $distro != Unknown ] elif [ $distro != Unknown ]
then then
echo "$distro detected" echo "$distro $distro_version detected"
else else
echo "WARNING: Distro not detected, using package-manager defaults" echo "WARNING: Distro not detected, using package-manager defaults"
fi fi
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment