scripts/list-versions.sh: set TERMUX_PREFIX variable

Fixes

 dirname: missing operand
 Try 'dirname --help' for more information.

when sourcing some build.sh.
This commit is contained in:
Leonid Pliushch 2020-05-19 15:15:09 +03:00
parent bdab94af08
commit b99704569b

View File

@ -7,6 +7,7 @@ check_package() { # path
local pkg=$(basename $path) local pkg=$(basename $path)
TERMUX_PKG_REVISION=0 TERMUX_PKG_REVISION=0
TERMUX_ARCH=aarch64 TERMUX_ARCH=aarch64
TERMUX_PREFIX=/data/data/com.termux/files/usr
. $path/build.sh . $path/build.sh
if [ "$TERMUX_PKG_REVISION" != "0" ] || [ "$TERMUX_PKG_VERSION" != "${TERMUX_PKG_VERSION/-/}" ]; then if [ "$TERMUX_PKG_REVISION" != "0" ] || [ "$TERMUX_PKG_VERSION" != "${TERMUX_PKG_VERSION/-/}" ]; then
TERMUX_PKG_VERSION+="-$TERMUX_PKG_REVISION" TERMUX_PKG_VERSION+="-$TERMUX_PKG_REVISION"