diff options
author | Matt Singleton <matt@xcolour.net> | 2021-07-15 15:38:26 -0500 |
---|---|---|
committer | Matt Singleton <matt@xcolour.net> | 2021-07-15 15:38:26 -0500 |
commit | 44ebba5387dbb6e493f845a1673af26c8aec56a2 (patch) | |
tree | 97ecbee5e45ed43fc24bd0cd7c1020b4f10c0ffb | |
parent | 62dcb3ffba4d08acbde1eeee67ae27c439393ad6 (diff) |
make sure to create the duplicity config dir before using it
-rwxr-xr-x | deploy.sh | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -67,9 +67,11 @@ if [ ! -e ~/.local/share/fonts/sourcecodepro-nerd ]; then unzip local/SourceCodePro.zip -d ~/.local/share/fonts/sourcecodepro-nerd echo "Run \'fc-cache -v\' to rebuild your font cache" fi -if [ ! -e ~/.config/duplicity/config ]; then - cp local/duplicity-config ~/.config/duplicity/config +dconfig="$xconfig/duplicity" +mkdir -p "$dconfig" +if [ ! -e "$dconfig/config" ]; then + cp local/duplicity-config "$dconfig/config" fi -if [ ! -e ~/.config/duplicity/excludes ]; then - cp local/duplicity-excludes ~/.config/duplicity/excludes +if [ ! -e "$dconfig/excludes" ]; then + cp local/duplicity-excludes "$dconfig/excludes" fi |