#!/bin/sh disallowed_files="" while read -r old_rev new_rev ref do while IFS= read -r file do case $file in */*) disallowed_files="${disallowed_files}${file} " ;; esac done <