base-files: xdg-runtime-dir: do previous in the correct way.

This commit is contained in:
Juan RP 2014-08-22 15:08:57 +02:00
parent bc907f3a59
commit 994590dc20
2 changed files with 2 additions and 4 deletions

View File

@ -1,9 +1,7 @@
# Sets and creates XDG_RUNTIME_DIR. # Sets and creates XDG_RUNTIME_DIR.
${UID:-$(id -u)}
if test -z "${XDG_RUNTIME_DIR}"; then if test -z "${XDG_RUNTIME_DIR}"; then
export XDG_RUNTIME_DIR=/tmp/${UID}-runtime-dir export XDG_RUNTIME_DIR=/tmp/${UID:-$(id -u)}-runtime-dir
if ! test -d "${XDG_RUNTIME_DIR}"; then if ! test -d "${XDG_RUNTIME_DIR}"; then
mkdir "${XDG_RUNTIME_DIR}" mkdir "${XDG_RUNTIME_DIR}"
chmod 0700 "${XDG_RUNTIME_DIR}" chmod 0700 "${XDG_RUNTIME_DIR}"

View File

@ -1,6 +1,6 @@
# Template file for 'base-files' # Template file for 'base-files'
pkgname=base-files pkgname=base-files
version=0.106 version=0.107
revision=1 revision=1
bootstrap=yes bootstrap=yes
build_style="meta" build_style="meta"