TERMUX_PKG_HOMEPAGE=http://termux.com/add-ons/api/
TERMUX_PKG_DESCRIPTION="Termux API commands"
-TERMUX_PKG_VERSION=0.10
+TERMUX_PKG_VERSION=0.11
termux_step_make_install () {
mkdir -p $TERMUX_PREFIX/bin
done
if [ $# -gt 1 ]; then echo "Only one file can be shared"; exit 1; fi
-if [ $# != 0 ]; then PARAMS="$PARAMS --es file `realpath $1`"; fi
-@TERMUX_API@ Share $PARAMS
+if [ $# != 0 ]; then
+ # Note that the file path can contain whitespace.
+ @TERMUX_API@ Share $PARAMS --es file "`realpath "$1"`"
+else
+ @TERMUX_API@ Share $PARAMS
+fi