mirror of
https://github.com/CoolnsX/repos_scripts.git
synced 2025-12-20 07:15:20 +05:30
Fix edge, single client, error case
This commit is contained in:
4
torrent
4
torrent
@@ -15,7 +15,7 @@ down() {
|
||||
error_$os "Torrent: Error!!"
|
||||
}
|
||||
|
||||
magnet="$*"
|
||||
magnet="$1"
|
||||
if [ "$(uname -o)" = "Android" ]; then
|
||||
os="droid"
|
||||
script_dir="$HOME/.shortcuts"
|
||||
@@ -49,7 +49,7 @@ fi
|
||||
echo "$magnet"
|
||||
printf "${c_yellow}Download>>\n${c_green}[f]ull torrent\n${c_cyan}[p]artial torrent \n${c_red}[q]uit"
|
||||
printf "${c_reset}\n\tenter choice:"
|
||||
read -r ch
|
||||
[ -z "$2" ] && read -r ch || ch=$2
|
||||
case $ch in
|
||||
f)
|
||||
down "$magnet"
|
||||
|
||||
Reference in New Issue
Block a user