mirror of
https://github.com/amalgamated-tools/mirror-to-gitea.git
synced 2025-12-23 22:18:05 -05:00
16 lines
238 B
Bash
Executable File
16 lines
238 B
Bash
Executable File
#!/usr/bin/env sh
|
|
|
|
set -e
|
|
|
|
# Get custom delay, else use 3600 seconds
|
|
DELAY="${DELAY:-3600}"
|
|
|
|
while true
|
|
do
|
|
echo "Starting to create mirrors..."
|
|
node /app/dist/index.js
|
|
|
|
echo "Waiting for ${DELAY} seconds..."
|
|
sleep "${DELAY}"
|
|
done
|