dotfiles/lib/deploy.sh
2022-12-16 14:23:28 +01:00

16 lines
No EOL
290 B
Bash

#!/bin/sh
REPO_LIST="https://git.faulty.nl/didier/dotfiles"
DOTFILES_DIR="$HOME/.local/dotfiles"
clone() {
for repo in $REPO_LIST; do
git clone "$repo" "$DOTFILES_DIR" && return 0
done
}
main() {
[ -d "$DOTFILES_DIR" ] || clone
cd "$DOTFILES_DIR" || exit 1
./sync.sh "$@"
}