diff options
author | OBATA Akio <obache@wizdas.com> | 2019-08-15 17:02:19 +0900 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2019-08-15 22:32:42 +0200 |
commit | e951a69396ba1614775ba97dcac7dd34153c864a (patch) | |
tree | 1552f0592339ff537d833a83be036dfe14cc625f /karm/test/__lib.sh | |
parent | 0e5f517eb7d525e245293dfa51a86b00b1b72e34 (diff) | |
download | tdepim-e951a69396ba1614775ba97dcac7dd34153c864a.tar.gz tdepim-e951a69396ba1614775ba97dcac7dd34153c864a.zip |
fix some sh portability fixes
Replace bash specific way with POSIX one.
Signed-off-by: OBATA Akio <obache@wizdas.com>
(cherry picked from commit 0009cb8171f141e113777e7f6557a0cfa1542d5a)
Diffstat (limited to 'karm/test/__lib.sh')
-rw-r--r-- | karm/test/__lib.sh | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/karm/test/__lib.sh b/karm/test/__lib.sh index 06fd9df62..0f8be7bbd 100644 --- a/karm/test/__lib.sh +++ b/karm/test/__lib.sh @@ -1,7 +1,7 @@ # Expects karm test file in $TESTFILE # Returns dcop id in $DCOP_ID -function set_up() +set_up() { DCOPID=`dcop 2>/dev/null | grep karm` @@ -44,7 +44,7 @@ function set_up() then break else - let "idx += 1" + idx=$(( idx + 1 )) fi sleep 1 done @@ -64,12 +64,12 @@ function set_up() fi } -function test_func() +test_func() { echo "Yep, that works." } -function tear_down() +tear_down() { if [ -n "$DCOPID" ]; then dcop "$DCOPID" KarmDCOPIface quit; fi; |