[packages/lxd] wrong usage means errors

glen glen at pld-linux.org
Tue Aug 23 08:52:09 CEST 2016


commit 543b45ad7dd1866a61fa612710c37bfe8354dbe2
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Tue Aug 23 09:51:58 2016 +0300

    wrong usage means errors

 lxd.sh | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/lxd.sh b/lxd.sh
index a9cfb35..4a9f864 100644
--- a/lxd.sh
+++ b/lxd.sh
@@ -4,9 +4,9 @@
 # are printed in log file as well, so just ignore stderr here 
 
 if [ "$1" != "daemon" ]; then
-    echo "This is a wrapper script for lxd, executed by service scripts."
-    echo "Use /usr/sbin/lxd to run lxd manually."
-    exit 0
+    echo >&2 "This is a wrapper script for lxd, executed by service scripts."
+    echo >&2 "Use /usr/sbin/lxd to run lxd manually."
+    exit 1
 fi
 
 exec 1>>/dev/null
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/lxd.git/commitdiff/543b45ad7dd1866a61fa612710c37bfe8354dbe2



More information about the pld-cvs-commit mailing list