diff options
author | Vijay Bellur <vijay@gluster.com> | 2009-12-01 18:20:55 +0530 |
---|---|---|
committer | Vijay Bellur <vijay@gluster.com> | 2009-12-01 18:20:55 +0530 |
commit | 2167d8999350c22bba521aca75b4f0aea6c2d524 (patch) | |
tree | 84f4618ba1f080802d1368636f38a626701efff8 /init | |
parent | d63a382f7ffd5f9e019a3dd3b63ac35a9f05e8cc (diff) |
init: Support for printing description optionally
Diffstat (limited to 'init')
-rw-r--r-- | init | 16 |
1 files changed, 13 insertions, 3 deletions
@@ -17,18 +17,28 @@ # <http://www.gnu.org/licenses/>. # set -u +DESC=0 function ok () { desc=$@ - echo $desc - echo "$BUGID: ok - $desc" + if [ $DESC -ne "0" ] + then + echo "$BUGID: ok - $desc" + else + echo "$BUGID: ok" + fi } function not_ok () { desc=$@ - echo "$BUGID: not ok - $desc" + if [ $DESC -ne "0" ] + then + echo "$BUGID: not ok - $desc" + else + echo "$BUGID: not ok" + fi } [ $# -ne 1 ] && { |