#!/bin/sh -ex # Set exec flag on all files that should be executable find -maxdepth 4 -name "*.sh" "$@" -exec chmod +x {} +