15 lines
431 B
Bash
15 lines
431 B
Bash
#!/bin/bash
|
|
#Goto ProjectRoot
|
|
cd "$( cd "$( dirname "$0" )" &> /dev/null && pwd )/.."
|
|
|
|
GetResource () {
|
|
local Variant=$1
|
|
local FileName=$2
|
|
local GetAddr=$3
|
|
echo "Getting $FileName for $Variant"
|
|
curl -L --retry 7 --retry-delay 5 "$GetAddr" -o "CT-Files/$Variant/$FileName"
|
|
}
|
|
|
|
#PhpMyadmin for mysql variant
|
|
GetResource mysql phpmyadmin.tar.gz https://www.phpmyadmin.net/downloads/phpMyAdmin-latest-english.tar.gz
|