diff options
author | Felix Fietkau <nbd@openwrt.org> | 2014-11-23 21:25:39 +0300 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2014-11-23 21:25:39 +0300 |
commit | d5d384b0ba390b39fdca07919f3e3831afc712c2 (patch) | |
tree | b31104934e13ba06b4060bcd14cdc3fce5669dc6 /sh | |
parent | d133da5562b36d5ac871cbe927bb9ecdf0569a51 (diff) |
jshn: improve performance by using let instead of $(( ))
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Diffstat (limited to 'sh')
-rw-r--r-- | sh/jshn.sh | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -42,7 +42,7 @@ _json_inc() { # var=$1 # dest=$2 - eval "${JSON_PREFIX}$1=\$(( \${${JSON_PREFIX}$1:-0} + 1))${2:+; $2=\"\$${JSON_PREFIX}$1\"}" + let "${JSON_PREFIX}$1 += 1" "$2 = ${JSON_PREFIX}$1" } _json_add_generic() { |