Directory name will now be used as the package name if not set in bpm-setup and updated README.md

This commit is contained in:
2024-10-08 10:32:58 +03:00
parent 9372acba3f
commit 66c8dd5f91
2 changed files with 9 additions and 4 deletions
+4 -1
View File
@@ -19,7 +19,6 @@ if [ $# -eq 0 ]; then
exit
fi
NAME="package-name"
DESCRIPTION="Default package description"
VERSION="1.0"
#URL="https://my.project.url/ (Optional)"
@@ -79,6 +78,10 @@ if [ -z "${DIRECTORY}" ]; then
exit 1
fi
if [ -z "${NAME}" ]; then
NAME="${DIRECTORY}"
fi
if [[ ! "${DIRECTORY}" == "/"* ]]; then
DIRECTORY="${PWD}/${DIRECTORY}"
fi