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 <[email protected]>
---
 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
[email protected]

Reply via email to