From 44ebba5387dbb6e493f845a1673af26c8aec56a2 Mon Sep 17 00:00:00 2001 From: Matt Singleton Date: Thu, 15 Jul 2021 15:38:26 -0500 Subject: make sure to create the duplicity config dir before using it --- deploy.sh | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/deploy.sh b/deploy.sh index 2e624ae..44e2a68 100755 --- a/deploy.sh +++ b/deploy.sh @@ -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 -- cgit v1.2.3