#!/bin/bash order=("dwm-cursorwarp" "dwm-gaps" "dwm-torus") for patch in ${order[@]}; do patch_file=$(ls patches | grep $patch) echo "applying patch $patch_file..." git apply "patches/$patch_file" || echo "failed to patch $patch_file. it may've already been applied!" done