aboutsummaryrefslogtreecommitdiff
path: root/sh/tmpfiles.sh.in
diff options
context:
space:
mode:
Diffstat (limited to 'sh/tmpfiles.sh.in')
-rwxr-xr-xsh/tmpfiles.sh.in8
1 files changed, 4 insertions, 4 deletions
diff --git a/sh/tmpfiles.sh.in b/sh/tmpfiles.sh.in
index de819645..1460bdfd 100755
--- a/sh/tmpfiles.sh.in
+++ b/sh/tmpfiles.sh.in
@@ -268,10 +268,10 @@ for FILE in $tmpfiles_d ; do
age=$6
arg=$7
- [ ${4} = '-' ] && uid=0
- [ ${5} = '-' ] && gid=0
- [ ${6} = '-' ] && age=0
- [ ${7} = '-' ] && arg=''
+ [ "${4}" = '-' -o "${4}" = '' ] && uid=0
+ [ "${5}" = '-' -o "${5}" = '' ] && gid=0
+ [ "${6}" = '-' -o "${6}" = '' ] && age=0
+ [ "${7}" = '-' -o "${7}" = '' ] && arg=''
set -- "$path" "$mode" "$uid" "$gid" "$age" "$arg"
[ "$VERBOSE" -eq "1" ] && echo _$cmd "$@"