summaryrefslogtreecommitdiff
path: root/util.inc.sh
diff options
context:
space:
mode:
authorDave Reisner <dreisner@archlinux.org>2014-08-16 22:44:57 -0400
committerDave Reisner <dreisner@archlinux.org>2014-08-16 22:50:45 -0400
commita32225831ef5c1cdd96521fe244bbc8b470badf3 (patch)
tree981e586a8317ca27defb236d89c6eb6f81da7893 /util.inc.sh
parent5e640c2534a287210f83dfb492dbe9a37b895a39 (diff)
downloadasp32-a32225831ef5c1cdd96521fe244bbc8b470badf3.tar.xz
util: fix map return status
Simplify this while we're at it -- we don't care for the error count.
Diffstat (limited to 'util.inc.sh')
-rw-r--r--util.inc.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/util.inc.sh b/util.inc.sh
index a9bb51e..c33cb63 100644
--- a/util.inc.sh
+++ b/util.inc.sh
@@ -22,7 +22,7 @@ log_info() {
map() {
local map_r=0
for _ in "${@:2}"; do
- "$1" "$_" || (( $# > 255 ? map_r=1 : ++r ))
+ "$1" "$_" || map_r=1
done
return $map_r
}