2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2026-10-21 15:18:19 +00:00
Files
xcat-core/xCAT-genesis-base/oe/scripts/export-functions
T
2026-10-13 22:16:49 -03:00

8 lines
195 B
Plaintext

resolve_artifact() {
local path=$1 resolved
resolved=$(readlink -f -- "$path")
[[ -f $resolved && ! -L $resolved ]] || fail "missing artifact: $path"
printf '%s\n' "$resolved"
}