mirror of
https://github.com/tuna/tunasync-scripts.git
synced 2025-04-20 04:12:42 +00:00
add script for winehq
This commit is contained in:
parent
7989af4337
commit
36bb82a57d
13
winehq.sh
Executable file
13
winehq.sh
Executable file
@ -0,0 +1,13 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
function sync_winehq() {
|
||||||
|
repo_url="$1"
|
||||||
|
repo_dir="$2"
|
||||||
|
|
||||||
|
[ ! -d "$repo_dir" ] && mkdir -p "$repo_dir"
|
||||||
|
cd $repo_dir
|
||||||
|
lftp "${repo_url}/" -e "mirror --verbose --exclude wine-builds.old/ -P 5 --delete --only-newer; bye"
|
||||||
|
}
|
||||||
|
|
||||||
|
BASE_URL=${TUNASYNC_UPSTREAM_URL:-"ftp://ftp.winehq.org/pub/"}
|
||||||
|
sync_winehq "${BASE_URL}" "${TUNASYNC_WORKING_DIR}"
|
Loading…
x
Reference in New Issue
Block a user