mirror of
https://github.com/deadc0de6/dotdrop.git
synced 2026-02-04 14:31:46 +00:00
init config file only if not existing
This commit is contained in:
@@ -3,14 +3,16 @@
|
||||
# Copyright (c) 2017, deadc0de6
|
||||
|
||||
fold="dotfiles"
|
||||
conf="config.yaml"
|
||||
|
||||
# copy dotdrop entry point
|
||||
cat dotdrop/dotdrop.sh | sed 's#${cur}/dotdrop/dotdrop.py#${cur}/dotdrop/dotdrop/dotdrop.py#g' > dotdrop.sh
|
||||
chmod +x dotdrop.sh
|
||||
mkdir $fold
|
||||
|
||||
# init config file
|
||||
cat << EOF > config.yaml
|
||||
if [ ! -e ${conf} ]; then
|
||||
# init config file
|
||||
cat << EOF > ${conf}
|
||||
config:
|
||||
backup: true
|
||||
create: true
|
||||
@@ -18,3 +20,4 @@ config:
|
||||
dotfiles:
|
||||
profiles:
|
||||
EOF
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user