#!/bin/bash directory=`dirname $(readlink -f "$0")` for file in $(find $directory/.. -type f -name "docker.rebuild.sh"); do chmod +x $file $file done