- install with busybox if any

This commit is contained in:
Alexander 2018-11-19 11:13:31 +07:00 committed by Nick Craig-Wood
parent 2191592e80
commit 2682d5a9cf
1 changed files with 5 additions and 1 deletions

View File

@ -10,7 +10,7 @@
set -e
#when adding a tool to the list make sure to also add it's corresponding command further in the script
unzip_tools_list=('unzip' '7z')
unzip_tools_list=('unzip' '7z', 'busybox')
usage() { echo "Usage: curl https://rclone.org/install.sh | sudo bash [-s beta]" 1>&2; exit 1; }
@ -133,6 +133,10 @@ case $unzip_tool in
'7z')
7z x $rclone_zip -o$unzip_dir
;;
'busybox')
mkdir -p $unzip_dir
busybox unzip $rclone_zip -d $unzip_dir
;;
esac
cd $unzip_dir/*