Divided release and dev. variants of download
This commit is contained in:
parent
0e727259af
commit
d7b32a7eda
|
@ -4,9 +4,23 @@ echo "Enter filename"
|
|||
read filename
|
||||
echo "Enter link to the file"
|
||||
read link
|
||||
|
||||
echo "Type of the file (Release = 1, Beta or Alpha = 2)"
|
||||
read type
|
||||
new_link="https://media.forgecdn.net/files/"
|
||||
|
||||
case $type in
|
||||
"1")
|
||||
new_link="https://media.forgecdn.net/files/"
|
||||
;;
|
||||
"2")
|
||||
new_link="https://edge.forgecdn.net/files/"
|
||||
;;
|
||||
"*")
|
||||
echo "USING RELEASE URL BY DEFAULT. IF NOT WORKS, TRY TYPE 2 HERE."
|
||||
new_link="https://media.forgecdn.net/files/"
|
||||
;;
|
||||
esac
|
||||
|
||||
IFS="/" read -a link_array <<< $link
|
||||
|
||||
ID=${link_array[7]}
|
||||
|
|
Loading…
Reference in New Issue