Find all files/directories under $1 which have at least execute permission for their owner and set execute permission for group for these files/directories
find "$1" -perm -u+x -print0 | xargs chmod g+x