From 6334d4572938579eb9aed5a4acfbad1ed75303d9 Mon Sep 17 00:00:00 2001 From: Ward Fisher Date: Tue, 5 Jul 2016 10:54:54 -0600 Subject: [PATCH] Addressed syntax warning issue. --- ncxx4-config.cmake.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ncxx4-config.cmake.in b/ncxx4-config.cmake.in index 84a00de..3ec7006 100644 --- a/ncxx4-config.cmake.in +++ b/ncxx4-config.cmake.in @@ -23,7 +23,7 @@ has_dap="yes" fi has_nc2="@BUILD_V2@" -if [ -z $has_nc2 -o "$has_nc2" = "OFF" ]; then +if [ -z $has_nc2 ] || [ "$has_nc2" = "OFF" ]; then has_nc2="no" else has_nc2="yes" @@ -93,7 +93,7 @@ while test $# -gt 0; do # this deals with options in the style # --option=value and extracts the value part # [not currently used] - -*=*) value=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;; + -*=*) value=$(echo "$1" | sed 's/[-_a-zA-Z0-9]*=//') ;; *) value= ;; esac