((ret+=$?)) with ((ret|=$?)). Thanks to zong_sharo for the suggestion.
svn path=/main/trunk/; revision=13242
echo "!!! ${0##*/}: $x does not exist" 1>&2
false
fi
- ((ret+=$?))
+ ((ret|=$?))
done
exit ${ret}
ecompress --queue "${dir}/${x##*/}"
elif [ ! -e "${x}" ] ; then
echo "!!! ${0##*/}: $x does not exist" 1>&2
- ((++ret))
+ ((ret|=1))
fi
done
echo "!!! ${0##*/}: $mysrc does not exist" 1>&2
false
fi
- ((ret+=$?))
+ ((ret|=$?))
done
rm -rf "$TMP"
mv "$TMP/1/$x_orig" "$x"
fi
while popd >/dev/null 2>&1 ; do true ; done
- ((++success))
+ ((success|=1))
else
- _doins "${x}" && ((++success))
+ _doins "${x}" && ((success|=1))
fi
done
rm -rf "$TMP"
echo "!!! ${0##*/}: ${x} does not exist" 1>&2
false
fi
- ((ret+=$?))
+ ((ret|=$?))
done
exit ${ret}
fi
install -m0644 "${x}" "${D}/usr/share/man/${mandir}/${name}"
- ((ret+=$?))
+ ((ret|=$?))
elif [[ ! -e ${x} ]] ; then
echo "!!! ${0##*/}: $x does not exist" 1>&2
- ((++ret))
+ ((ret|=1))
fi
else
vecho "doman: '${x}' is probably not a man page; skipping" 1>&2
- ((++ret))
+ ((ret|=1))
fi
done
echo "!!! ${0##*/}: $x does not exist" 1>&2
false
fi
- ((ret+=$?))
+ ((ret|=$?))
done
exit $ret
echo "!!! ${0##*/}: ${x} does not exist" 1>&2
false
fi
- ((ret+=$?))
+ ((ret|=$?))
done
exit ${ret}
echo "${y} is not a regular file!" >&2
false
fi
- ((ret+=$?))
+ ((ret|=$?))
else
mysed="${x}"
fi
if [ $file_found = 0 ] ; then
echo "!!! ${0##*/}: $y does not exist" 1>&2
- ((ret+=1))
+ ((ret|=1))
fi
exit $ret
for x in "$@" ; do
[[ ${x##*.} =~ $mask_ext_re ]] && continue
filtered_args[$i]=$x
- (( i++ ))
+ ((i|=1))
done
[ $i -eq 0 ] && exit 0
set -- "${filtered_args[@]}"
# first we act on all the files
find "${dir}" -type f ${negate} -iname '*'${suffix} -print0 | ${XARGS} -0 ${binary}
- ((ret+=$?))
+ ((ret|=$?))
find "${dir}" -type l -print0 | \
while read -d $'\0' brokenlink ; do
[[ ${act} == "compress" ]] \
&& ln -snf "${newdest}" "${brokenlink}${suffix}" \
|| ln -snf "${newdest}" "${brokenlink%${suffix}}"
- ((ret+=$?))
+ ((ret|=$?))
done
}
while read mandir ; do
mandir=${mandir#${D}}
prepman "${mandir%/man}"
- ((ret+=$?))
+ ((ret|=$?))
done < "${T}"/prepallman.filelist
exit ${ret}