echo "More than one SM file in ${path}, aborting"
exit
fi
+
+ if [ "${removes[${path}]}" = "$hash" ]; then
+ echo "Same hash ($hash) and path ($path) in adds and removes. Ignoring."
+ unset removes["$hash"]
+ continue
+ fi
+
adds["${path}"]+="$hash"
fi
# I suppose it could happen that one of these borked paths were moved to a different location, but
# in that case thered be multiple sms in the adds path. So... I guess its OK.
if [ -z "${removes[${path}]}" ]; then
+ if [ "${adds[${path}]}" = "$hash" ]; then
+ echo "Same hash ($hash) and path ($path) in adds and removes. Ignoring."
+ unset adds["$hash"]
+ continue
+ fi
+
removes["${path}"]+="$hash"
fi
fi