Fix variable assignments.
authorChris Sharp <csharp@georgialibraries.org>
Wed, 12 Jul 2017 23:04:39 +0000 (19:04 -0400)
committerChris Sharp <csharp@georgialibraries.org>
Wed, 12 Jul 2017 23:04:39 +0000 (19:04 -0400)
install-ubuntu.sh

index f29d626..27a59ce 100755 (executable)
@@ -22,8 +22,8 @@ if [ "$(whoami)" != "root" ]; then
     echo "Must be root to run this script." && exit 1
 fi
 
-DISTRO="lsb_release -i | awk '{print $3}'"
-RELEASE="lsb_release -r | awk '{print $2}'"
+DISTRO="$(lsb_release -i | awk '{print $3}')"
+RELEASE="$(lsb_release -r | awk '{print $2}')"
 OSRF_WEB_ROOT="/openils/var/web"
 if [ "$DISTRO" == "Ubuntu" ]; then
        if [ "$RELEASE" == "16.04" ]; then