aboutsummaryrefslogtreecommitdiff
path: root/sh/functions.sh
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2008-01-11 12:13:46 +0000
committerRoy Marples <roy@marples.name>2008-01-11 12:13:46 +0000
commit3bf49a9bd19d5bbcf6976dd42b4f87f1b173e287 (patch)
tree8b4d6121f0d4b921566eeec2844c9bf76131de78 /sh/functions.sh
parent1f4422c72f968405a0b8bf56d4f9c3b619b1b80d (diff)
Adopt a more C style for scripts and remove vim settings.
Diffstat (limited to 'sh/functions.sh')
-rw-r--r--sh/functions.sh11
1 files changed, 6 insertions, 5 deletions
diff --git a/sh/functions.sh b/sh/functions.sh
index feab3f27..56af00f2 100644
--- a/sh/functions.sh
+++ b/sh/functions.sh
@@ -6,13 +6,15 @@
RC_GOT_FUNCTIONS="yes"
-eindent() {
+eindent()
+{
EINFO_INDENT=$((${EINFO_INDENT:-0} + 2))
[ "${EINFO_INDENT}" -gt 40 ] && EINFO_INDENT=40
export EINFO_INDENT
}
-eoutdent() {
+eoutdent()
+{
EINFO_INDENT=$((${EINFO_INDENT:-0} - 2))
[ "${EINFO_INDENT}" -lt 0 ] && EINFO_INDENT=0
return 0
@@ -36,7 +38,8 @@ yesno()
esac
}
-_sanitize_path() {
+_sanitize_path()
+{
local IFS=":" p= path=
for p in ${PATH}; do
case "${p}" in
@@ -81,5 +84,3 @@ else
export EINFO_LASTCMD=${_e}; return \$_r; }"
done
fi
-
-# vim: set ts=4 :