rejigger
This commit is contained in:
parent
88cb222ebe
commit
108c007872
1 changed files with 4 additions and 4 deletions
8
spcd.sh
8
spcd.sh
|
@ -127,15 +127,15 @@ spcd_set_environment_variables() {
|
||||||
else
|
else
|
||||||
spcd_error_ci "ø"
|
spcd_error_ci "ø"
|
||||||
fi
|
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_ROOT}" ] || spcd_error_ci "SPCD_PROJECT_ROOT"
|
||||||
[ -n "${SPCD_PROJECT_PATH}" ] || spcd_error_ci "SPCD_PROJECT_PATH"
|
[ -n "${SPCD_PROJECT_PATH}" ] || spcd_error_ci "SPCD_PROJECT_PATH"
|
||||||
[ -n "${SPCD_PROJECT_NAME}" ] || spcd_error_ci "SPCD_PROJECT_NAME"
|
[ -n "${SPCD_PROJECT_NAME}" ] || spcd_error_ci "SPCD_PROJECT_NAME"
|
||||||
[ -n "${SPCD_PROJECT_BRANCH}" ] || spcd_error_ci "SPCD_PROJECT_BRANCH"
|
|
||||||
#
|
#
|
||||||
spcd_split
|
spcd_split
|
||||||
spcd_echo "SPCD_PROJECT_ROOT" \
|
spcd_echo "SPCD_PROJECT_BRANCH" \
|
||||||
"SPCD_PROJECT_PATH" "SPCD_PROJECT_NAME" "SPCD_PROJECT_BRANCH"
|
"SPCD_PROJECT_ROOT" "SPCD_PROJECT_PATH" "SPCD_PROJECT_NAME"
|
||||||
# set path
|
# set path
|
||||||
SPCD_PATH="$(realpath "${0}")"
|
SPCD_PATH="$(realpath "${0}")"
|
||||||
spcd_echo "SPCD_PATH"
|
spcd_echo "SPCD_PATH"
|
||||||
|
|
Loading…
Reference in a new issue