xbps-triggers: mkdirs: set perms even if dir already exists.
This commit is contained in:
parent
1a8a8b159d
commit
2493c50318
|
@ -33,10 +33,12 @@ run)
|
|||
while [ $# -gt 0 ]; do
|
||||
_dir="$1"; _mode="$2"; _uid="$3"; _gid="$4"
|
||||
if [ ! -d ".${_dir}" ]; then
|
||||
mkdir -m${_mode} -p ".${_dir}" && \
|
||||
chown "${_uid}:${_gid}" ".${_dir}" ||
|
||||
echo "Failed to create .${_dir}!"
|
||||
mkdir -p ".${_dir}" || \
|
||||
echo "Failed to create .${_dir}!"
|
||||
fi
|
||||
chown "${_uid}:${_gid}" ".${_dir}" && \
|
||||
chmod ${_mode} ".${_dir}" || \
|
||||
echo "Failed to set perms ${_mode} ${_uid}:${_gid} to .${_dir}!"
|
||||
shift; shift; shift; shift
|
||||
done
|
||||
else
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
# Template file for 'xbps-triggers'
|
||||
pkgname=xbps-triggers
|
||||
version=0.29
|
||||
version=0.30
|
||||
short_desc="XBPS triggers"
|
||||
maintainer="Juan RP <xtraeme@gmail.com>"
|
||||
homepage="http://code.google.com/p/xbps"
|
||||
|
|
Loading…
Reference in New Issue