Add a check for .config directory

This commit is contained in:
2024-03-14 20:49:14 -05:00
parent 5039730f4f
commit 967b7f5446

View File

@@ -1,6 +1,11 @@
#!/bin/bash #!/bin/bash
cd "$(dirname "$0")" 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 #Check to make sure colordiff installed for the pacdiff step, install it if not, and export it as the editor
#export DIFFPROG=colordiff #export DIFFPROG=colordiff
colordiff_installed=$(which colordiff) colordiff_installed=$(which colordiff)