pulp-runtime/configs/common.sh

14 lines
319 B
Bash
Raw Normal View History

2019-12-17 21:14:17 +00:00
#!/bin/bash -e
if [ -n "${ZSH_VERSION:-}" ]; then
DIR="$(readlink -f -- "${(%):-%x}")"
DIRNAME="$(dirname $DIR)"
scriptDir="$(dirname $DIRNAME)"
else
2019-12-17 21:14:17 +00:00
scriptDir="$(dirname "$(dirname "$(readlink -f "${BASH_SOURCE[0]}")")")"
fi
2019-12-17 21:14:17 +00:00
export PULPRT_HOME=$scriptDir
export PULP_SDK_HOME=$PULPRT_HOME