aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Singleton <matt@xcolour.net>2021-07-15 15:38:26 -0500
committerMatt Singleton <matt@xcolour.net>2021-07-15 15:38:26 -0500
commit44ebba5387dbb6e493f845a1673af26c8aec56a2 (patch)
tree97ecbee5e45ed43fc24bd0cd7c1020b4f10c0ffb
parent62dcb3ffba4d08acbde1eeee67ae27c439393ad6 (diff)
make sure to create the duplicity config dir before using it
-rwxr-xr-xdeploy.sh10
1 files 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