-
-
Couldn't load subscription status.
- Fork 3
Open
Labels
enhancementNew feature or requestNew feature or request
Description
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.gzhttps://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=1and 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 changesOn line 541:
Lines 534 to 550 in 796d22e
| _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" |
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request