mirror of
https://github.com/tuna/tunasync-scripts.git
synced 2025-04-20 12:42:50 +00:00
8 lines
232 B
Bash
Executable File
8 lines
232 B
Bash
Executable File
#!/bin/bash
|
|
set -e
|
|
BASE_URL=${TUNASYNC_UPSTREAM_URL:-"pkg.julialang.org"}
|
|
[[ -d "${TUNASYNC_WORKING_DIR}" ]]
|
|
cd "${TUNASYNC_WORKING_DIR}"
|
|
exec julia -e "using StorageServer; mirror_tarball(\"registries/General\", [\"$BASE_URL\"])"
|
|
|