Skip to content

Commit

Permalink
replace colon with / for ssh support
Browse files Browse the repository at this point in the history
  • Loading branch information
Staubgeborener authored Nov 20, 2024
1 parent 969808a commit 1ccd26a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ git_host=${git_host:-"github.com"}
ssh_user=${ssh_user:-"git"}

if [[ $git_protocol == "ssh" ]]; then
full_git_url=$git_protocol"://"$ssh_user"@"$git_host":"$github_username"/"$github_repository".git"
full_git_url=$git_protocol"://"$ssh_user"@"$git_host"/"$github_username"/"$github_repository".git"
else
full_git_url=$git_protocol"://"$github_token"@"$git_host"/"$github_username"/"$github_repository".git"
fi
Expand Down Expand Up @@ -261,4 +261,4 @@ fi
git push -u origin "$branch_name"

# Remove files except .git folder after backup so that any file deletions can be logged on next backup
find "$backup_path" -maxdepth 1 -mindepth 1 ! -name '.git' ! -name 'README.md' -exec rm -rf {} \;
find "$backup_path" -maxdepth 1 -mindepth 1 ! -name '.git' ! -name 'README.md' -exec rm -rf {} \;

0 comments on commit 1ccd26a

Please sign in to comment.