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:
14
bootstrap.sh
vendored
14
bootstrap.sh
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user