source git-annex-install so it it can add git-annex to PATH
This commit was sponsored by Jack Hill on Patreon.
This commit is contained in:
parent
ff9ba1f4d3
commit
ba0bbced51
4 changed files with 20 additions and 10 deletions
|
@ -5,6 +5,9 @@
|
|||
# This is only a convenience script to avoid the user needing to type much
|
||||
# in termux. The standalone tarball automatically adapts itself to the termux
|
||||
# environment, so this script should stay as mininal as possible.
|
||||
#
|
||||
# This script needs to be sourced into the current termux shell, rather
|
||||
# than run with a new shell, so it can set the PATH to include git-annex.
|
||||
|
||||
set -e
|
||||
|
||||
|
@ -45,4 +48,8 @@ echo "git-annex is successfully installed."
|
|||
echo "Now running termux-setup-storage, to let git-annex access system storage."
|
||||
termux-setup-storage
|
||||
|
||||
# Add to PATH of shell that sourced this, so the user can immediately
|
||||
# start using git-annex.
|
||||
PATH="$PATH:`pwd`/git-annex.linux"
|
||||
|
||||
echo "Installation complete."
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue