]> granicus.if.org Git - graphviz/commitdiff
ci: apply '${ID_LIKE:-}' pattern from build script to install
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 11 Dec 2021 22:47:44 +0000 (14:47 -0800)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sun, 12 Dec 2021 19:21:33 +0000 (11:21 -0800)
This allows in future enabling `set -u` in this script.

ci/install-packages.sh

index bededcef71e9374ba8f3edd8b7bb480762da5634..c25f46a2d3edc269e9e5b5d572cad396cfb13262 100755 (executable)
@@ -31,7 +31,7 @@ if [ "${ID}" = "centos" -o "${ID}" = "fedora" ]; then
     fi
 fi
 if [ "${build_system}" = "cmake" ]; then
-    if [ "${ID_LIKE}" = "debian" ]; then
+    if [ "${ID_LIKE:-}" = "debian" ]; then
         apt install ./${DIR}/graphviz-${GV_VERSION}-cmake.deb
     elif [ "${ID}" = "Darwin" ]; then
         unzip ${DIR}/Graphviz-${GV_VERSION}-Darwin.zip
@@ -40,7 +40,7 @@ if [ "${build_system}" = "cmake" ]; then
         rpm --install --force ${DIR}/graphviz-${GV_VERSION}-cmake.rpm
     fi
 else
-    if [ "${ID_LIKE}" = "debian" ]; then
+    if [ "${ID_LIKE:-}" = "debian" ]; then
         tar xf ${DIR}/graphviz-${GV_VERSION}-debs.tar.xz
         apt install ./libgraphviz4_${GV_VERSION}-1_amd64.deb
         apt install ./libgraphviz-dev_${GV_VERSION}-1_amd64.deb