Make git optional for remote installation. We should be able to required curl / wget, tar for remote installation.
List of download mirrors
https://github.com/spywhere/dotfiles/archive/refs/heads/$CLONE_REPO_BRANCH.tar.gz
https://git.sr.ht/~spywhere/dots/archive/$CLONE_REPO_BRANCH.tar.gz
curl <link to tarball> -o <tarball>
mkdir -p "$HOME/$DOTFILES"
tar zxf <tarball> -C "$HOME/$DOTFILES" --strip-components=1
and once all is done, check if git is installed then convert it to git repo using
cd "$HOME/$DOTFILES"
git init
git remote add origin "$CLONE_REPO"
git fetch # fetch the changes
git checkout -f "$CLONE_REPO_BRANCH" # check out branch, discard any changes
On line 541:
|
_try_run_install() { |
|
try_run_install__skip_update=0 |
|
if test "$HAS_LOCAL_COPY" -eq 0; then |
|
if test "$RUN_LOCAL" -ge 1; then |
|
error "local copy of dotfiles is not found at $HOME/$DOTFILES" |
|
quit 1 |
|
fi |
|
|
|
if test "$VERBOSE" -le 1; then |
|
clone "$CLONE_REPO" "$HOME/$DOTFILES" "dotfiles into $HOME/$DOTFILES" --branch "$CLONE_REPO_BRANCH" |
|
else |
|
clone "$CLONE_REPO" "$HOME/$DOTFILES" "dotfiles" --branch "$CLONE_REPO_BRANCH" |
|
fi |
|
try_run_install__skip_update=1 |
|
fi |
|
|
|
cd "$HOME/$DOTFILES" |
Make
gitoptional for remote installation. We should be able to requiredcurl/wget,tarfor remote installation.List of download mirrors
https://github.com/spywhere/dotfiles/archive/refs/heads/$CLONE_REPO_BRANCH.tar.gzhttps://git.sr.ht/~spywhere/dots/archive/$CLONE_REPO_BRANCH.tar.gzand once all is done, check if
gitis installed then convert it to git repo usingOn line 541:
dotfiles/install.sh
Lines 534 to 550 in 796d22e