commit c05c6f0a09418b6caf6e42f4911aea695a5c347f
Author: Jan Pokorný <jpokorny(a)redhat.com>
Date: Sat Feb 25 15:13:05 2012 +0100
third-party/init.sh: formatting, comment
Signed-off-by: Jan Pokorný <jpokorny(a)redhat.com>
third-party/init.sh | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/third-party/init.sh b/third-party/init.sh
index 094ca2d..08d2203 100755
--- a/third-party/init.sh
+++ b/third-party/init.sh
@@ -1,6 +1,7 @@
#!/bin/sh
-# vim:set noet ts=4 sts=4:
+# vim: noet:ts=8:sw=8
# jpokorny(a)redhat.com
+# NOTE: not ready for arbitrary CWD, from . only
#
# internals
@@ -24,7 +25,7 @@ check_nargs () {
check_ret () {
[ $1 -ne 0 -a $1 -ne $RET_DEL ] \
- && do_announce "action failed with exit status $1" $CLR_BAD
+ && do_announce "action failed with exit status $1" $CLR_BAD
return $1
}
@@ -74,8 +75,8 @@ require () {
$tester $1 >/dev/null
ret=$?
[ $ret -eq 0 ] \
- && do_announce "require $1: checked ok" $CLR_OK \
- || do_announce "require $1: not met" $CLR_BAD
+ && do_announce "require $1: checked ok" $CLR_OK \
+ || do_announce "require $1: not met" $CLR_BAD
return $ret
}
Show replies by date