for path in ${SCAN_PATHS} ; do
path="${EROOT%/}${path}"
- [[ -w ${path} ]] || die "Need write access to ${path}"
-
if [[ ! -d ${path} ]] ; then
[[ ! -f ${path} ]] && continue
local my_basename="${path##*/}"
fi
find_opts+=( ! -name '.*~' ! -iname '.*.bak' -print )
+ if [ ! -w "${path}" ] ; then
+ [ -e "${path}" ] || continue
+ die "Need write access to ${path}"
+ fi
+
local file ofile b=$'\001'
for file in $(find "${path}"/ "${find_opts[@]}" |
sed \