From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: From: Roland Hieber Date: Thu, 14 Nov 2019 17:01:14 +0100 Message-Id: <20191114160116.20379-1-rhi@pengutronix.de> MIME-Version: 1.0 Subject: [ptxdist] [PATCH 1/3] ptxdist: _get_config_ptx: fix --force logic List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: ptxdist@pengutronix.de Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ptxdist-bounces@pengutronix.de Sender: "ptxdist" To: ptxdist@pengutronix.de Cc: Roland Hieber When --force is used to override that message, PTXDIST_FORCE is set to true in parse_first(), resulting in the message to be shown. Signed-off-by: Roland Hieber --- bin/ptxdist | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/ptxdist b/bin/ptxdist index 9394b1739190..cd673a9f3dd6 100755 --- a/bin/ptxdist +++ b/bin/ptxdist @@ -250,7 +250,7 @@ _get_config_ptx() { configfile_version="$(ptxd_get_ptxconf PTXCONF_CONFIGFILE_VERSION)" - if [ $? -ne 0 -a -n "${PTXDIST_FORCE}" ]; then + if [ $? -ne 0 -a -z "${PTXDIST_FORCE}" ]; then ptxd_dialog_msgbox \ "error: the config file '${PTXDIST_PTXCONFIG#${PTXDIST_WORKSPACE}/}'\n" \ " is missing the symbol 'PTXCONF_CONFIGFILE_VERSION',\n" \ -- 2.24.0 _______________________________________________ ptxdist mailing list ptxdist@pengutronix.de