aboutsummaryrefslogtreecommitdiff
path: root/dwmbar
diff options
context:
space:
mode:
Diffstat (limited to 'dwmbar')
-rwxr-xr-xdwmbar5
1 files changed, 5 insertions, 0 deletions
diff --git a/dwmbar b/dwmbar
index 4617cf3..080394b 100755
--- a/dwmbar
+++ b/dwmbar
@@ -53,6 +53,11 @@ check_files(){
exit 1
fi
+ if [[ ! -d $CACHE_DIR ]]; then
+ echo "$CACHE_DIR does not exist." > /dev/stderr
+ exit 1
+ fi
+
if [[ ! -f $DEFAULT_BAR_LOCATION ]]; then
echo "$DEFAULT_BAR_LOCATION does not exist." > /dev/stderr
exit 1