diff --git a/script.sh b/script.sh index d609225..8c05411 100755 --- a/script.sh +++ b/script.sh @@ -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 @@ -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 {} \; \ No newline at end of file +find "$backup_path" -maxdepth 1 -mindepth 1 ! -name '.git' ! -name 'README.md' -exec rm -rf {} \;