We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c78084f commit 3057ee1Copy full SHA for 3057ee1
2 files changed
app/src/main/assets/home/bin/axel
-67.1 KB
app/src/main/assets/home/bin/taive
@@ -2,14 +2,14 @@
2
3
# Kiểm tra trợ giúp hoặc thiếu tham số
4
if [[ "$1" =~ ^(-h|--help)$ ]] || [ -z "$1" ]; then
5
- echo "Syntax: taive [-#|-a|-w] http://file.zip [path/save.zip]"
+ echo "Syntax: taive [-#|-w] http://file.zip [path/save.zip]"
6
exit 0
7
fi
8
9
# Tách cờ tùy chọn nếu có
10
FLAG=""
11
case "$1" in
12
- -#|-a|-w) FLAG="$1"; shift ;;
+ -#|-w) FLAG="$1"; shift ;;
13
esac
14
15
# Xác định đường dẫn lưu
@@ -24,7 +24,6 @@ fi
24
# Thực thi công cụ tải tương ứng
25
case "$FLAG" in
26
-#) curl -# -L -H "$WEBS" "$1" -o "$SAVE_PATH" ;;
27
- -a) axel -H "$WEBS" -n 10 -o "$SAVE_PATH" "$1" ;;
28
-w) wget --header "$WEBS" --no-check-certificate -O "$SAVE_PATH" "$1" ;;
29
*) curl -L -H "$WEBS" "$1" -o "$SAVE_PATH" ;;
30
0 commit comments