termux-tools: do not provide file path with slash at the beginning

See https://github.com/termux/termux-app/issues/995.
This commit is contained in:
Leonid Pliushch 2019-01-27 15:42:06 +02:00 committed by Fredrik Fornwall
parent aaffc47f67
commit 47e114d0a8
2 changed files with 4 additions and 1 deletions

View File

@ -1,7 +1,7 @@
TERMUX_PKG_HOMEPAGE=https://termux.com/
TERMUX_PKG_DESCRIPTION="Basic system tools for Termux"
TERMUX_PKG_LICENSE="GPL-3.0"
TERMUX_PKG_VERSION=0.59
TERMUX_PKG_VERSION=0.60
TERMUX_PKG_PLATFORM_INDEPENDENT=yes
TERMUX_PKG_ESSENTIAL=yes
TERMUX_PKG_DEPENDS="termux-am"

View File

@ -40,6 +40,9 @@ if [ -f "$FILE" ]; then
FILE=`realpath "$FILE"`
fi
# Fix for issues on Android 8.1.
FILE=$(echo "$FILE" | sed 's/^\///')
am broadcast --user 0 \
-a $ACTION \
-n com.termux/com.termux.app.TermuxOpenReceiver \