From 0be634747b26ea01dcd1a1652e6fe00a03553235 Mon Sep 17 00:00:00 2001 From: Tzafrir Cohen Date: Mon, 17 May 2010 13:12:01 +0000 Subject: Fix bashism (Raphael Geissert, checkbashism) git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/branches/2.2@8637 a0bf4364-ded3-4de4-8d8a-66a801d63aff --- xpp/astribank_hook | 2 +- xpp/waitfor_xpds | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/xpp/astribank_hook b/xpp/astribank_hook index dc55d14..cc7e9d2 100755 --- a/xpp/astribank_hook +++ b/xpp/astribank_hook @@ -53,7 +53,7 @@ matched_devices() { lineno=`clean_lines | egrep -n "^${label}$|^@${connector}$" | cut -d: -f1` if [ "$lineno" != "" ]; then #echo "$xbus: $XPPORDER_CONF:$lineno -- Match ${label} @${connector}" | $LOGGER - echo -e "${xbus}\t${label}" + printf "${xbus}\t${label}\n" else echo "${xbus}: ${label} @${connector} not found in $XPPORDER_CONF: Ignore($ACTION)" | $LOGGER fi diff --git a/xpp/waitfor_xpds b/xpp/waitfor_xpds index 63f05f6..30b3ac5 100755 --- a/xpp/waitfor_xpds +++ b/xpp/waitfor_xpds @@ -65,7 +65,7 @@ do fi echo -n 1>&2 "." sleep 1 - : $((tries--)) + : $((tries-=1)) done echo "" -- cgit v1.2.3