sh/tmpfiles: fix quoting for optional arguments

Some optional arguments were missing quotes in the tests, so produced
spurious warnings.

Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
This commit is contained in:
Robin H. Johnson 2012-08-16 18:44:47 +00:00
parent e641b43849
commit c8703354e3

View File

@ -268,10 +268,10 @@ for FILE in $tmpfiles_d ; do
age=$6 age=$6
arg=$7 arg=$7
[ ${4} = '-' ] && uid=0 [ "${4}" = '-' -o "${4}" = '' ] && uid=0
[ ${5} = '-' ] && gid=0 [ "${5}" = '-' -o "${5}" = '' ] && gid=0
[ ${6} = '-' ] && age=0 [ "${6}" = '-' -o "${6}" = '' ] && age=0
[ ${7} = '-' ] && arg='' [ "${7}" = '-' -o "${7}" = '' ] && arg=''
set -- "$path" "$mode" "$uid" "$gid" "$age" "$arg" set -- "$path" "$mode" "$uid" "$gid" "$age" "$arg"
[ "$VERBOSE" -eq "1" ] && echo _$cmd "$@" [ "$VERBOSE" -eq "1" ] && echo _$cmd "$@"