diff options
author | OBATA Akio <obache@wizdas.com> | 2019-08-15 17:02:19 +0900 |
---|---|---|
committer | OBATA Akio <obache@wizdas.com> | 2019-08-15 17:23:01 +0900 |
commit | 0009cb8171f141e113777e7f6557a0cfa1542d5a (patch) | |
tree | d1e7cb6a0ae3aba7d4b72ca4d475b276fe1f895d /karm/test/__lib.sh | |
parent | c349db5d278566f8f129e8bd54751155fad49d9e (diff) | |
download | tdepim-0009cb8171f141e113777e7f6557a0cfa1542d5a.tar.gz tdepim-0009cb8171f141e113777e7f6557a0cfa1542d5a.zip |
fix some sh portability fixes
Replace bash specific way with POSIX one.
Signed-off-by: OBATA Akio <obache@wizdas.com>
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; |