1
0
mirror of https://github.com/deadc0de6/dotdrop.git synced 2026-02-04 20:54:51 +00:00
Files
dotdrop/bootstrap.sh
2023-09-21 21:49:24 +02:00

24 lines
388 B
Bash
Executable File
Vendored

#!/usr/bin/env bash
# author: deadc0de6 (https://github.com/deadc0de6)
# Copyright (c) 2017, deadc0de6
fold="dotfiles"
conf="config.yaml"
# copy dotdrop entry point
cp dotdrop/dotdrop.sh dotdrop.sh
chmod +x dotdrop.sh
mkdir -p $fold
if [ ! -e ${conf} ]; then
# init config file
cat << EOF > ${conf}
config:
backup: true
create: true
dotpath: $fold
dotfiles:
profiles:
EOF
fi