autofs: Use mkdir instead of install command

This commit is contained in:
Timo Makinen 2020-11-24 07:24:07 +00:00
parent 0d083acbd4
commit 5d10282cdb
2 changed files with 2 additions and 2 deletions

View file

@ -8,6 +8,6 @@ if ($uid > 999 && "`/usr/bin/id -gn`" == "`/usr/bin/id -un`") then
endif
setenv XDG_CACHE_HOME "${XDG_RUNTIME_DIR}/.cache"
if ( ! -d "${XDG_CACHE_HOME}" ) then
install -d -m 0700 "${XDG_CACHE_HOME}"
mkdir -m 0700 "${XDG_CACHE_HOME}"
endif
endif

View file

@ -9,6 +9,6 @@ if [ $UID -gt 999 ] && [ "`/usr/bin/id -gn`" = "`/usr/bin/id -un`" ]; then
fi
export XDG_CACHE_HOME="$XDG_RUNTIME_DIR/.cache"
if [ ! -d "$XDG_CACHE_HOME" ] ; then
install -d -m 0700 "$XDG_CACHE_HOME"
mkdir -m 0700 "$XDG_CACHE_HOME"
fi
fi