get.sh: simplify xbget

Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
Leah Rowe
2026-09-12 11:19:42 +01:00
parent b094c60a39
commit c3e2d8c8bc
4 changed files with 14 additions and 26 deletions
+8 -8
View File
@@ -60,13 +60,13 @@ release()
prep_release()
{
(
if [ "$1" != "tarball" ]; then
x_ cd "$rsrc"
[ ! -e "cache" ] && \
x_ ln -s "$XBMK_CACHE" "cache"; :
fi
if [ "$1" != "tarball" ]; then
x_ cd "$rsrc"
[ ! -e "cache" ] && \
x_ ln -s "$XBMK_CACHE" "cache"; :
fi
prep_release_$1
prep_release_$1
) || err "can't prep release $1" "prep_release" "$@"
}
@@ -105,8 +105,8 @@ prep_release_tarball()
x_ mv "$rsrc/util/sbase2" "$rsrc/util/sbase"
(
x_ cd "${rsrc%/*}"
x_ mktarball "${rsrc##*/}" "${rsrc##*/}.tar.xz"
x_ cd "${rsrc%/*}"
x_ mktarball "${rsrc##*/}" "${rsrc##*/}.tar.xz"
) || err "can't create src tarball" "prep_release_tarball" "$@"; :
}