mirror of
https://github.com/uprightbass360/AzerothCore-RealmMaster.git
synced 2026-02-07 20:51:10 +00:00
add path fallbacks
This commit is contained in:
@@ -147,6 +147,8 @@ ensure_source_repo(){
|
|||||||
if [[ "$src_path" != /* ]]; then
|
if [[ "$src_path" != /* ]]; then
|
||||||
src_path="$ROOT_DIR/$src_path"
|
src_path="$ROOT_DIR/$src_path"
|
||||||
fi
|
fi
|
||||||
|
# Normalize path to remove ./ and resolve to absolute path
|
||||||
|
src_path="$(cd "$ROOT_DIR" && realpath -m "$src_path" 2>/dev/null || echo "$src_path")"
|
||||||
if [ -d "$src_path/.git" ]; then
|
if [ -d "$src_path/.git" ]; then
|
||||||
echo "$src_path"
|
echo "$src_path"
|
||||||
return
|
return
|
||||||
|
|||||||
Reference in New Issue
Block a user