diff options
Diffstat (limited to 'standalone/android/runshell')
-rwxr-xr-x | standalone/android/runshell | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/standalone/android/runshell b/standalone/android/runshell index 47fe9d884..ba8395778 100755 --- a/standalone/android/runshell +++ b/standalone/android/runshell @@ -74,9 +74,6 @@ install () { } run () { - # As good a start point as any. - cd "$HOME" - PATH="$base/bin:$PATH" export PATH @@ -104,7 +101,12 @@ run () { shift 1 exec "$cmd" "$@" else - git annex webapp & + # As good a start point as any. + if $cmd test -d "$HOME"; then + cd "$HOME" + fi + $cmd echo "Starting webapp ..." + $cmd nohup git annex webapp >/dev/null & /system/bin/sh fi } |