mirror of
https://github.com/dw-0/kiauh.git
synced 2025-12-24 00:03:42 +05:00
Compare commits
2 Commits
v5.1.5
...
9328238fe3
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9328238fe3 | ||
|
|
2cafa5848e |
@@ -253,8 +253,12 @@ function clone_klipper() {
|
||||
local repo=${1} branch=${2}
|
||||
|
||||
[[ -z ${repo} ]] && repo="${KLIPPER_REPO}"
|
||||
if [[ "${repo}" =~ ^(http|https):\/\/github.com || ! "$repo" =~ ^(http|https):\/\/ && ! "$repo" =~ ^git@ ]]; then
|
||||
repo=$(echo "${repo}" | sed -r "s/^(http|https):\/\/github\.com\///i; s/\.git$//")
|
||||
repo="https://github.com/${repo}"
|
||||
else
|
||||
repo=${repo}
|
||||
fi
|
||||
|
||||
[[ -z ${branch} ]] && branch="master"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user