summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--functions2
1 files changed, 1 insertions, 1 deletions
diff --git a/functions b/functions
index 432d700..fac153c 100644
--- a/functions
+++ b/functions
@@ -193,7 +193,7 @@ die() {
map() {
local r=0
for _ in "${@:2}"; do
- "$1" "$_" || r=1
+ "$1" "$_" || (( $# > 255 ? r=1 : ++r ))
done
return $r
}