Fill in source path for mirroring

This commit is contained in:
Florine W. Dekker 2021-04-14 20:32:20 +02:00
parent bb5c66594a
commit e2a25bebf1
Signed by: FWDekker
GPG Key ID: B1B567AF58D6EE0F
1 changed files with 3 additions and 4 deletions

View File

@ -1,10 +1,9 @@
#!/usr/local/bin/bash
# $1 = source repository
# $2 = destination repository, including tokens
# $1= destination repository, including tokens
repo_url="$1"
repo_url="$(pwd)"
repo_name="$(basename -s .git "$repo_url")"
dst_url="$2"
dst_url="$1"
tmp_dir="$HOME/tmp/git/$repo_name-$(date +%s)"
echo "[[ Deploy ]] mirror-to-github($repo_name)"