#!/bin/bash FILE_EXTENSIONS=("sh" "py") for EXT in "${FILE_EXTENSIONS[@]}" do find $SCRIPTS_DIR -type f -iname "*.${EXT}" -exec chmod +x {} \; done