mirror of
https://github.com/tuna/tunasync-scripts.git
synced 2025-12-26 00:52:46 +00:00
steamos
This commit is contained in:
parent
0bd0318395
commit
827203c204
|
|
@ -0,0 +1,13 @@
|
|||
#!/bin/bash
|
||||
|
||||
function sync_steamos() {
|
||||
repo_url="$1"
|
||||
repo_dir="$2"
|
||||
|
||||
[ ! -d "$repo_dir" ] && mkdir -p "$repo_dir"
|
||||
cd $repo_dir
|
||||
lftp "${repo_url}/" -e "mirror --verbose -P 5 --delete --only-newer; bye"
|
||||
}
|
||||
|
||||
BASE_URL=${TUNASYNC_UPSTREAM_URL:-"http://repo.steampowered.com"}
|
||||
sync_steamos "${BASE_URL}" "${TUNASYNC_WORKING_DIR}"
|
||||
Loading…
Reference in New Issue