[go: up one dir, main page]

File: bootstrap.sh

package info (click to toggle)
dotdrop 1.12.9-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,576 kB
  • sloc: sh: 11,872; python: 7,108; makefile: 3
file content (23 lines) | stat: -rwxr-xr-x 378 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/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