[arch-projects] [initscripts] [PATCH 10/13] functions: Remove useless '$' within '(( ))'
Kurt J. Bosch
kjb-temp-2009 at alpenjodel.de
Tue Jul 12 12:11:03 EDT 2011
---
functions | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/functions b/functions
index 722098d..9a44ab5 100644
--- a/functions
+++ b/functions
@@ -39,7 +39,7 @@ calc_columns () {
if [[ -t 1 ]]; then
SAVE_POSITION="\e[s"
RESTORE_POSITION="\e[u"
- DEL_TEXT="\e[$(($STAT_COL+4))G"
+ DEL_TEXT="\e[$((STAT_COL+4))G"
else
SAVE_POSITION=""
RESTORE_POSITION=""
@@ -158,7 +158,7 @@ status() {
shift
"$@" &>/dev/null
local ret=$?
- (( $ret == 0 )) && stat_done || stat_fail
+ (( ret == 0 )) && stat_done || stat_fail
return $ret
}
--
1.7.1
More information about the arch-projects
mailing list