termux-tools: Remove termux-user script
This commit is contained in:
parent
3ca4ba784b
commit
91c3e293f7
@ -1,12 +1,11 @@
|
||||
TERMUX_PKG_HOMEPAGE=http://termux.com/
|
||||
TERMUX_PKG_DESCRIPTION="Some tools for Termux"
|
||||
TERMUX_PKG_VERSION=0.5
|
||||
TERMUX_PKG_VERSION=0.6
|
||||
|
||||
termux_step_make_install () {
|
||||
$CXX $CFLAGS $LDFLAGS -std=c++14 -Wall -Wextra -pedantic -Werror $TERMUX_PKG_BUILDER_DIR/*.cpp -o $TERMUX_PREFIX/bin/termux-elf-cleaner
|
||||
|
||||
rm -f $TERMUX_PREFIX/bin/{am,termux-user,termux-fix-shebang,termux-reload-style,chsh,termux-open-url}
|
||||
cp $TERMUX_PKG_BUILDER_DIR/{am,termux-user,termux-fix-shebang,termux-reload-style,chsh,termux-open-url} $TERMUX_PREFIX/bin/
|
||||
cp $TERMUX_PKG_BUILDER_DIR/{am,termux-fix-shebang,termux-reload-style,chsh,termux-open-url} $TERMUX_PREFIX/bin/
|
||||
|
||||
sed -i "s%\@TERMUX_PREFIX\@%${TERMUX_PREFIX}%g" $TERMUX_PREFIX/bin/termux-fix-shebang
|
||||
}
|
||||
|
@ -6,4 +6,4 @@ if [ $# != 1 ]; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
LD_LIBRARY_PATH= am start --user `termux-user` -a android.intent.action.VIEW -d $1 > /dev/null
|
||||
am start --user 0 -a android.intent.action.VIEW -d $1 > /dev/null
|
||||
|
@ -1,3 +0,0 @@
|
||||
# See e.g. https://code.google.com/p/android/issues/detail?id=39801)
|
||||
|
||||
whoami | cut -d _ -f 1 | cut -c 2-
|
Loading…
Reference in New Issue
Block a user