mirror of
https://github.com/xcat2/xcat-core.git
synced 2026-10-21 15:18:19 +00:00
8 lines
195 B
Plaintext
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"
|
|
}
|