diff options
| author | Leah Rowe <leah@libreboot.org> | 2025-05-07 19:12:51 +0100 |
|---|---|---|
| committer | Leah Rowe <leah@libreboot.org> | 2025-05-07 19:14:36 +0100 |
| commit | 570f1417a80224cf73a57febf126bd80e908b32e (patch) | |
| tree | 3852b351899ce19baf7155282868393f90424c76 /include | |
| parent | e1af1055ed11b25df42c8a7a32c250da346b08b7 (diff) | |
init.sh: Resolve XBMK_CACHE via readlink
Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'include')
| -rw-r--r-- | include/init.sh | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/init.sh b/include/init.sh index 1a01de45..a322370b 100644 --- a/include/init.sh +++ b/include/init.sh @@ -131,6 +131,9 @@ xbmk_set_env() [ -L "$XBMK_CACHE" ] && [ "$XBMK_CACHE" = "$xbmkpwd/cache" ] && \ err "cachedir '$xbmkpwd/cache' is a symlink" [ -L "$XBMK_CACHE" ] && export XBMK_CACHE="$xbmkpwd/cache" + xbmkcache="`findpath "$XBMK_CACHE"`" || \ + err "Can't resolve cachedir: '$XBMK_CACHE'" + export XBMK_CACHE="$xbmkcache" [ -d "$XBMK_CACHE" ] || err "cachedir '$XBMK_CACHE' is a file"; : # if "y": a coreboot target won't be built if target.cfg says release="n" |
