summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2012-11-05 21:25:32 +0000
committerWilliam Hubbs <w.d.hubbs@gmail.com>2012-11-05 15:36:10 -0600
commite473ab968c70edbbaa6e1ce2d7b8046400609304 (patch)
tree7375bd5bdace4968935a95348d3e64d440324b74
parentb8a5a1a309421eaa0cd467763a40042d24db56b4 (diff)
downloadopenrc-0.11.4.tar.gz
openrc-0.11.4.tar.bz2
openrc-0.11.4.tar.xz
tmpfilesd: Doing both create+remove at the same time is valid.openrc-0.11.4
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
-rwxr-xr-xsh/tmpfiles.sh.in2
1 files changed, 1 insertions, 1 deletions
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