mirror of
https://github.com/iLoveElysia/openbilibili.git
synced 2026-03-13 21:41:37 -05:00
13 lines
326 B
Bash
13 lines
326 B
Bash
|
|
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
|