Initial Commit

This commit is contained in:
Strix 2023-10-14 22:38:03 +02:00
commit 0b7502d13d
No known key found for this signature in database
GPG key ID: 49B2E37B8915B774
18 changed files with 564 additions and 0 deletions

16
lib/deploy.sh Normal file
View file

@ -0,0 +1,16 @@
#!/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 "$@"
}

19
lib/lib.sh Normal file
View file

@ -0,0 +1,19 @@
#!/bin/sh
DRY_RUN=${DRY_RUN:-no}
bool() {
case "$1" in
1|true|yes|on|TRUE|YES|ON) return 0 ;;
*) return 1 ;;
esac
}
run() {
if bool "$DRY_RUN"; then
echo "DRY: + $*"
else
echo "+ $*"
"$@"
fi
}