From e473ab968c70edbbaa6e1ce2d7b8046400609304 Mon Sep 17 00:00:00 2001 From: "Robin H. Johnson" Date: Mon, 5 Nov 2012 21:25:32 +0000 Subject: tmpfilesd: Doing both create+remove at the same time is valid. Signed-off-by: Robin H. Johnson --- sh/tmpfiles.sh.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sh/tmpfiles.sh.in b/sh/tmpfiles.sh.in index ae7b7ca..a5041bb 100755 --- a/sh/tmpfiles.sh.in +++ b/sh/tmpfiles.sh.in @@ -232,7 +232,7 @@ if [ $(( CLEAN )) -eq 1 ] ; then exit 1 fi -if [ $(( CREATE + REMOVE )) -ne 1 ] ; then +if [ "$CREATE$REMOVE" == '00' ]; then printf 'usage: %s [--create] [--remove] [--clean] [--verbose] [--dry-run]\n' "${0##*/}" exit 1 fi -- cgit v1.2.3