From 9150313d7ad1295b6635565fa1ba377a54ebd78a Mon Sep 17 00:00:00 2001 From: Vincent Bernat Date: Sat, 1 Feb 2020 12:32:56 +0100 Subject: [PATCH] rc: simplify cache dir creation No need to test if directory exists, `mkdir -p` already does that. --- rc.lua | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/rc.lua b/rc.lua index c3e189f..62be1a1 100644 --- a/rc.lua +++ b/rc.lua @@ -39,8 +39,7 @@ end loadrc("errors") -- errors and debug stuff -- Create cache directory -os.execute("test -d " .. awful.util.getdir("cache") .. - " || mkdir -p " .. awful.util.getdir("cache")) +os.execute("mkdir -p " .. awful.util.getdir("cache")) -- Setup xsettings os.execute("~/.config/awesome/bin/xsettingsd-setup")