Update and migrate git repo URL.
parent
1c9bbb7559
commit
2ef10eeece
|
@ -3,7 +3,7 @@
|
||||||
## Installation
|
## Installation
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
curl -vLo install.sh https://git.icedream.tech/icedream/profile/raw/branch/master/home/dotfiles/local/bin/update-profile
|
curl -vLo install.sh https://code.icedream.tech/icedream/profile/raw/branch/master/home/dotfiles/local/bin/update-profile
|
||||||
chmod +x install.sh
|
chmod +x install.sh
|
||||||
./install.sh
|
./install.sh
|
||||||
rm install.sh
|
rm install.sh
|
||||||
|
@ -12,7 +12,7 @@ rm install.sh
|
||||||
or:
|
or:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
git clone --recursive https://git.icedream.tech/icedream/profile ~/.local/profile-git
|
git clone --recursive https://code.icedream.tech/icedream/profile ~/.local/profile-git
|
||||||
|
|
||||||
# Installs packages, partially as root through sudo
|
# Installs packages, partially as root through sudo
|
||||||
cd ~/.local/profile-git/packages
|
cd ~/.local/profile-git/packages
|
||||||
|
|
|
@ -30,7 +30,16 @@ if [ ! -d ~/.local/profile-git ]; then
|
||||||
(
|
(
|
||||||
cd ~/.local/profile-git
|
cd ~/.local/profile-git
|
||||||
git init
|
git init
|
||||||
git remote add origin https://git.icedream.tech/icedream/profile.git
|
git remote add origin https://code.icedream.tech/icedream/profile.git
|
||||||
|
)
|
||||||
|
else
|
||||||
|
(
|
||||||
|
cd ~/.local/profile-git
|
||||||
|
case "$(git remote get-url origin)" in
|
||||||
|
*//git.icedream.tech/*)
|
||||||
|
git remote set-url origin https://code.icedream.tech/icedream/profile.git
|
||||||
|
;;
|
||||||
|
esac
|
||||||
)
|
)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue