Skip to content

Commit 3057ee1

Browse files
committed
Update
1 parent c78084f commit 3057ee1

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

app/src/main/assets/home/bin/axel

-67.1 KB
Binary file not shown.

app/src/main/assets/home/bin/taive

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22

33
# Kiểm tra trợ giúp hoặc thiếu tham số
44
if [[ "$1" =~ ^(-h|--help)$ ]] || [ -z "$1" ]; then
5-
echo "Syntax: taive [-#|-a|-w] http://file.zip [path/save.zip]"
5+
echo "Syntax: taive [-#|-w] http://file.zip [path/save.zip]"
66
exit 0
77
fi
88

99
# Tách cờ tùy chọn nếu có
1010
FLAG=""
1111
case "$1" in
12-
-#|-a|-w) FLAG="$1"; shift ;;
12+
-#|-w) FLAG="$1"; shift ;;
1313
esac
1414

1515
# Xác định đường dẫn lưu
@@ -24,7 +24,6 @@ fi
2424
# Thực thi công cụ tải tương ứng
2525
case "$FLAG" in
2626
-#) curl -# -L -H "$WEBS" "$1" -o "$SAVE_PATH" ;;
27-
-a) axel -H "$WEBS" -n 10 -o "$SAVE_PATH" "$1" ;;
2827
-w) wget --header "$WEBS" --no-check-certificate -O "$SAVE_PATH" "$1" ;;
2928
*) curl -L -H "$WEBS" "$1" -o "$SAVE_PATH" ;;
3029
esac

0 commit comments

Comments
 (0)