1
0
mirror of https://github.com/deadc0de6/dotdrop.git synced 2026-02-04 21:29:43 +00:00
Files
dotdrop/bootstrap.sh
2017-12-23 19:36:20 +01:00

24 lines
378 B
Bash
Executable File

#!/bin/sh
# 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