do not mess with klipper url, allow access via ssh or sites like gitlab

This commit is contained in:
hg42
2024-05-06 20:12:52 +02:00
parent f2691f33d3
commit 78668b56e4
2 changed files with 6 additions and 3 deletions

View File

@@ -22,7 +22,9 @@ function change_klipper_repo_menu() {
### generate the repolist from the klipper_repos.txt textfile
while IFS="," read -r repo branch; do
repo=$(echo "${repo}" | sed -r "s/^http(s)?:\/\/github.com\///" | sed "s/\.git$//" )
if [[ $repo != *://* ]]; then
repo="https://github.com/${repo}"
fi
repos+=("${repo}")
### if branch is not given, default to 'master'
[[ -z ${branch} ]] && branch="master"