From 3bf49a9bd19d5bbcf6976dd42b4f87f1b173e287 Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Fri, 11 Jan 2008 12:13:46 +0000 Subject: Adopt a more C style for scripts and remove vim settings. --- sh/functions.sh | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'sh/functions.sh') 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 : -- cgit v1.2.3