bilibili-backup/build/lib/lib.sh

13 lines
326 B
Bash
Raw Normal View History

2019-04-22 10:59:20 +08:00
set -o errexit
set -o nounset
set -o pipefail
# Unset CDPATH so that path interpolation can work correctly
# https://github.com/kratosrnetes/kratosrnetes/issues/52255
unset CDPATH
# The root of the build/dist directory
if [ -z "$KRATOS_ROOT" ]
then
KRATOS_ROOT="$(cd "$(dirname "${BASH_SOURCE}")/../.." && pwd -P)"
if