Skip to content

Commit

Permalink
Fix linux script unzip
Browse files Browse the repository at this point in the history
Unzip did not work on all linux distros. Now checking if unzip is
installed otherwise using unzip from oracle.
  • Loading branch information
dosomder committed Nov 9, 2014
1 parent cb7717f commit 1d77d1e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Binary file modified files/unzip.linux
Binary file not shown.
6 changes: 5 additions & 1 deletion install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,11 @@ then
if [ "$OS" = "Darwin" ]; then
unzip -j tr.apk lib/armeabi/libexploit.so > /dev/null
else
./unzip.linux -j tr.apk lib/armeabi/libexploit.so > /dev/null
if [ "`whereis unzip`" = "unzip:" ]; then
./unzip.linux -j tr.apk lib/armeabi/libexploit.so > /dev/null
else
unzip -j tr.apk lib/armeabi/libexploit.so > /dev/null
fi
fi

if [ ! -f libexploit.so ]; then
Expand Down

0 comments on commit 1d77d1e

Please sign in to comment.