1
0
mirror of https://github.com/deadc0de6/dotdrop.git synced 2026-02-07 07:05:48 +00:00

adding a gencfg command

This commit is contained in:
deadc0de6
2024-10-23 14:06:39 +02:00
committed by deadc0de
parent d5d00ef9c0
commit d252756e46
8 changed files with 44 additions and 20 deletions

14
bootstrap.sh vendored
View File

@@ -2,22 +2,14 @@
# 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
mkdir -p dotfiles
if [ ! -e ${conf} ]; then
if [ ! -e "${conf}" ]; then
# init config file
cat << EOF > ${conf}
config:
backup: true
create: true
dotpath: $fold
dotfiles:
profiles:
EOF
./dotdrop.sh gencfg > "${conf}"
fi