fix: guarded homeshick install in an if statement
This commit is contained in:
parent
8eec963c2d
commit
d9e42c210f
3
init.sh
3
init.sh
|
@ -15,6 +15,7 @@ for app in git curl; do
|
|||
done
|
||||
|
||||
## Install homeshick
|
||||
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"
|
||||
|
@ -30,6 +31,8 @@ homeshick --batch clone https://github.com/KitKat31337/homepsick.git
|
|||
|
||||
## Link everything
|
||||
homeshick link --force
|
||||
fi
|
||||
|
||||
|
||||
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