fix: guarded homeshick install in an if statement
This commit is contained in:
parent
8eec963c2d
commit
d9e42c210f
27
init.sh
27
init.sh
|
@ -15,21 +15,24 @@ for app in git curl; do
|
|||
done
|
||||
|
||||
## Install homeshick
|
||||
git clone https://github.com/andsens/homeshick.git "$HOME/.homesick/repos/homeshick"
|
||||
# shellcheck source=/dev/null
|
||||
source "$HOME/.homesick/repos/homeshick/homeshick.sh"
|
||||
source $HOME/.homesick/repos/homeshick/completions/homeshick-completion.bash
|
||||
if [[ ! -d $HOME/.homesick ]]; then
|
||||
git clone https://github.com/andsens/homeshick.git "$HOME/.homesick/repos/homeshick"
|
||||
# shellcheck source=/dev/null
|
||||
source "$HOME/.homesick/repos/homeshick/homeshick.sh"
|
||||
source $HOME/.homesick/repos/homeshick/completions/homeshick-completion.bash
|
||||
|
||||
## clone home, then set it to ssh afterwards
|
||||
## This means we need our keys before we can make further actions - disable the ssh behavior for now
|
||||
homeshick --batch clone https://stash.firekitten.net/kittyfangs/dotfiles.git
|
||||
## git -C "$HOME/.homesick/repos/dotfiles" remote set-url origin git@stash.firekitten.net:kittyfangs/dotfiles
|
||||
## clone home, then set it to ssh afterwards
|
||||
## This means we need our keys before we can make further actions - disable the ssh behavior for now
|
||||
homeshick --batch clone https://stash.firekitten.net/kittyfangs/dotfiles.git
|
||||
## git -C "$HOME/.homesick/repos/dotfiles" remote set-url origin git@stash.firekitten.net:kittyfangs/dotfiles
|
||||
|
||||
## Lets get the powerhsell version since we are initing in bash
|
||||
homeshick --batch clone https://github.com/KitKat31337/homepsick.git
|
||||
## Lets get the powerhsell version since we are initing in bash
|
||||
homeshick --batch clone https://github.com/KitKat31337/homepsick.git
|
||||
|
||||
## Link everything
|
||||
homeshick link --force
|
||||
fi
|
||||
|
||||
## Link everything
|
||||
homeshick link --force
|
||||
|
||||
if ! command -v brew &>/dev/null; then
|
||||
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
|
||||
|
|
Loading…
Reference in New Issue