From 967b7f544678769741de557e8530a3c68abd2693 Mon Sep 17 00:00:00 2001 From: Radical Date: Thu, 14 Mar 2024 20:49:14 -0500 Subject: [PATCH] Add a check for .config directory --- ArchUpdater.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ArchUpdater.sh b/ArchUpdater.sh index 42d565c..37523fe 100755 --- a/ArchUpdater.sh +++ b/ArchUpdater.sh @@ -1,6 +1,11 @@ #!/bin/bash cd "$(dirname "$0")" +#Check if ~/.config/ArchUpdater exists and create it if not +if [ ! -d "$HOME/.config/ArchUpdater" ]; then + mkdir -p $HOME/.config/ArchUpdater +fi + #Check to make sure colordiff installed for the pacdiff step, install it if not, and export it as the editor #export DIFFPROG=colordiff colordiff_installed=$(which colordiff)