Added curesforge_download.sh
This commit is contained in:
parent
676a7527fb
commit
0e727259af
|
@ -0,0 +1,21 @@
|
|||
#!/bin/bash
|
||||
|
||||
echo "Enter filename"
|
||||
read filename
|
||||
echo "Enter link to the file"
|
||||
read link
|
||||
|
||||
new_link="https://media.forgecdn.net/files/"
|
||||
|
||||
IFS="/" read -a link_array <<< $link
|
||||
|
||||
ID=${link_array[7]}
|
||||
|
||||
modID="${ID:0:4}"
|
||||
fileID="${ID:4:3}"
|
||||
|
||||
new_link="${new_link}$modID/$fileID/$filename"
|
||||
|
||||
echo $new_link
|
||||
|
||||
wget "${new_link}"
|
Loading…
Reference in New Issue