From bcd90e7048ffc80b5b06501fdd275ddd8996dc15 Mon Sep 17 00:00:00 2001 From: Marty Oehme Date: Mon, 22 Mar 2021 21:05:15 +0100 Subject: [PATCH] sh: Fix mkdir issue after removing XDG env vars Fixed bug introduced in 15f5f0b when removing the environment variable for two XDG directories, but not their creation. The test would check an empty directory for its existence and, not finding '' to be a directory, attempt to create it instead - resulting in the attempt to create a directory of an empty string. --- sh/.config/sh/xdg | 2 -- 1 file changed, 2 deletions(-) diff --git a/sh/.config/sh/xdg b/sh/.config/sh/xdg index ab55400..cc00e45 100644 --- a/sh/.config/sh/xdg +++ b/sh/.config/sh/xdg @@ -45,8 +45,6 @@ test -d "$XDG_DOWNLOAD_DIR" || mkdir -p -m 0700 "$XDG_DOWNLOAD_DIR" test -d "$XDG_MUSIC_DIR" || mkdir -p -m 0700 "$XDG_MUSIC_DIR" test -d "$XDG_PICTURES_DIR" || mkdir -p -m 0700 "$XDG_PICTURES_DIR" test -d "$XDG_PROJECTS_DIR" || mkdir -p -m 0700 "$XDG_PROJECTS_DIR" -test -d "$XDG_PUBLICSHARE_DIR" || mkdir -p -m 0700 "$XDG_PUBLICSHARE_DIR" -test -d "$XDG_TEMPLATES_DIR" || mkdir -p -m 0700 "$XDG_TEMPLATES_DIR" test -d "$XDG_VIDEOS_DIR" || mkdir -p -m 0700 "$XDG_VIDEOS_DIR" ## Applications that can be set through environment variables