Existence of package management files is tested even if PKGMNGT=n. Fix that. Thanks to Michael D.L. for reporting.

This commit is contained in:
Pierre Labastie 2017-03-25 21:00:16 +00:00
parent b6f19e750c
commit c67990fd77

View file

@ -194,8 +194,9 @@ inline_doc
;;
# Case of PKGMNGT: two files, packageManager.xml and packInstall.sh
# must exist in $PKGMNGTDIR:
# must exist in $PKGMNGTDIR if PKGMNGT='y':
PKGMNGT) echo -e "`eval echo $PARAM_VALS`"
if [ "$PKGMNGT" = y ]; then
if [ ! -e "$PKGMNGTDIR/packageManager.xml" ]; then
write_pkg_and_die $PKGMNGTDIR/packageManager.xml does not exist
fi
@ -214,6 +215,7 @@ inline_doc
if [ ! -r "$PKGMNGTDIR/packInstall.sh" ]; then
write_pkg_and_die $PKGMNGTDIR/packInstall.sh is not readable
fi
fi
;;
# Display non-validated envars found in ${PROGNAME}_PARAM_LIST
* ) echo -e "`eval echo $PARAM_VALS`" ;;