pulp-runtime/configs/common.sh
2020-03-05 14:18:42 +01:00

14 lines
No EOL
319 B
Bash

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