#!/bin/bash SCRIPT=$(realpath "$0") SCRIPTPATH=$(dirname "$SCRIPT") BASEPATH="$(realpath "${SCRIPTPATH}/../")" echo "adding secure git dir" git config --global --add safe.directory '*' echo "running chmods" find "${BASEPATH}" -iname "*.sh" -exec chmod +x {} +