Skip to content

Commit 2ccfecc

Browse files
committed
install.sh: Use test -d for make_dir_recursive
1 parent 53d557b commit 2ccfecc

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

install-template.sh

+1-3
Original file line numberDiff line numberDiff line change
@@ -145,10 +145,8 @@ append_to_file() {
145145

146146
make_dir_recursive() {
147147
local _dir="$1"
148-
# Skip if the last invocation of make_dir_recursive had the same argument
149-
if ! [ "$_dir" = "${_make_dir_recursive_cached_key:-}" ]
148+
if [ ! -d "$_dir" ]
150149
then
151-
_make_dir_recursive_cached_key="$_dir"
152150
local _line="$ umask 022 && mkdir -p \"$_dir\""
153151
umask 022 && mkdir -p "$_dir"
154152
local _retval=$?

0 commit comments

Comments
 (0)