Add a check for .config directory
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user