diff options
author | Joey Hess <joey@kitenet.net> | 2013-02-22 15:49:11 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2013-02-22 15:49:11 -0400 |
commit | 88d1bacda2af49462c21eb80989938f20348fb50 (patch) | |
tree | f1ca093484a593cbd8f090c047151d6479a635da /standalone/android/runshell | |
parent | c584374c78b1e2224b239a00d147fe374cb95301 (diff) |
fixes
Diffstat (limited to 'standalone/android/runshell')
-rwxr-xr-x | standalone/android/runshell | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/standalone/android/runshell b/standalone/android/runshell index 03d472d8c..e3921c0e0 100755 --- a/standalone/android/runshell +++ b/standalone/android/runshell @@ -23,7 +23,9 @@ setup () { mkdir -p "$base/bin" for prog in busybox git-annex git-shell git-upload-pack git gpg rsync ssh ssh-keygen; do echo "installing $prog" - rm -f "$base/bin/$prog" + if [ -e "$base/bin/$prog" ]; then + rm "$base/bin/$prog" + fi ln "$base/lib/lib.$prog.so" "$base/bin/$prog" done @@ -32,20 +34,22 @@ setup () { mv $base/bin.new/* $base/bin rmdir "$base/bin.new" - $base/bin/tar zxf lib/lib.git.tar.gz.so + $base/bin/tar zxf $base/lib/lib.git.tar.gz.so for prog in git git-shell git-upload-pack; do for link in $(cat $base/links/$prog); do echo "linking $link to $prog" - rm -f "$base/$link" + if [ -e ""$base/$link" ]; then + rm "$base/$link" + fi ln "$base/bin/$prog" "$base/$link" done - rm -f "$base/links/$prog" + rm "$base/links/$prog" done mkdir -p "$base/templates" mkdir -p "$base/tmp" - cp "$base/lib/lib.version.so" "$base/installed-version" + cat "$base/lib/lib.version.so" > "$base/installed-version" echo "Installation complete" } |