Skip to content

Commit 5e40c22

Browse files
committed
...
1 parent c235167 commit 5e40c22

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

x7

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11

2+
___X_CMD_GET_GITPROVIDER="https://codeberg.org/"
23
if command -v curl >/dev/null; then
34
XX=x7 eval "$(curl https://get.x-cmd.com/xx)";
45
elif command -v wget >/dev/null; then

xx

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ ___x_cmd_get_setupscript(){
2323
___x_cmd_inner_cd "$___X_CMD_ROOT/v";
2424

2525
if [ ! -d "$___X_CMD_VERSION" ]; then
26-
command git clone -c core.autocrlf=false "[email protected]:x-cmd/$___X_CMD_VERSION.git";
26+
command git clone -c core.autocrlf=false "${___X_CMD_GET_GITPROVIDER:-"[email protected]:"}x-cmd/$___X_CMD_VERSION.git";
2727
else
2828
printf "%s\n" "- I|x: Already exists: $PWD/$___X_CMD_VERSION" >&2;
2929
___x_cmd_inner_cd "$___X_CMD_VERSION";

0 commit comments

Comments
 (0)