This commit is contained in:
Marc Beninca 2024-07-20 17:07:50 +02:00
parent 88cb222ebe
commit 108c007872
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

View file

@ -127,15 +127,15 @@ spcd_set_environment_variables() {
else
spcd_error_ci "ø"
fi
#
# extra check
[ -n "${SPCD_PROJECT_BRANCH}" ] || spcd_error_ci "SPCD_PROJECT_BRANCH"
[ -n "${SPCD_PROJECT_ROOT}" ] || spcd_error_ci "SPCD_PROJECT_ROOT"
[ -n "${SPCD_PROJECT_PATH}" ] || spcd_error_ci "SPCD_PROJECT_PATH"
[ -n "${SPCD_PROJECT_NAME}" ] || spcd_error_ci "SPCD_PROJECT_NAME"
[ -n "${SPCD_PROJECT_BRANCH}" ] || spcd_error_ci "SPCD_PROJECT_BRANCH"
#
spcd_split
spcd_echo "SPCD_PROJECT_ROOT" \
"SPCD_PROJECT_PATH" "SPCD_PROJECT_NAME" "SPCD_PROJECT_BRANCH"
spcd_echo "SPCD_PROJECT_BRANCH" \
"SPCD_PROJECT_ROOT" "SPCD_PROJECT_PATH" "SPCD_PROJECT_NAME"
# set path
SPCD_PATH="$(realpath "${0}")"
spcd_echo "SPCD_PATH"