summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Pokorný <jpokorny@redhat.com>2012-02-25 15:03:33 +0100
committerJan Pokorný <jpokorny@redhat.com>2012-02-25 15:03:33 +0100
commitc6995346fd40daae39b098ee0d0a256cb27cb074 (patch)
tree52edf542512c1f690231790641951e0b9b6e70d1
parent9ee14f58756dd533ab7603e417fdceb82f52e0ff (diff)
downloadvim4projects-c6995346fd40daae39b098ee0d0a256cb27cb074.tar.gz
vim4projects-c6995346fd40daae39b098ee0d0a256cb27cb074.tar.xz
vim4projects-c6995346fd40daae39b098ee0d0a256cb27cb074.zip
init.sh: formatting, comment
Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
-rwxr-xr-xinit.sh9
1 files changed, 5 insertions, 4 deletions
diff --git a/init.sh b/init.sh
index 094ca2d..08d2203 100755
--- a/init.sh
+++ b/init.sh
@@ -1,6 +1,7 @@
#!/bin/sh
-# vim:set noet ts=4 sts=4:
+# vim: noet:ts=8:sw=8
# jpokorny@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
}