- 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

View file

@ -10,7 +10,7 @@
set -e set -e
#when adding a tool to the list make sure to also add it's corresponding command further in the script #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; } 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')
7z x $rclone_zip -o$unzip_dir 7z x $rclone_zip -o$unzip_dir
;; ;;
'busybox')
mkdir -p $unzip_dir
busybox unzip $rclone_zip -d $unzip_dir
;;
esac esac
cd $unzip_dir/* cd $unzip_dir/*