dwm/patch

12 lines
329 B
Plaintext
Raw Normal View History

2024-09-01 16:41:17 -04:00
#!/bin/bash
2024-09-01 23:03:47 -04:00
order=("dwm-cursorwarp" "dwm-fullgaps" "dwm-torus")
2024-09-01 16:41:17 -04:00
for patch in ${order[@]}; do
patch_file=$(ls patches | grep $patch)
echo "applying patch $patch_file..."
2024-09-01 23:03:47 -04:00
git apply "patches/$patch_file" || patch < "patches/$patch_file" || echo "failed to patch $patch_file. it may've already been applied!"
2024-09-01 16:41:17 -04:00
done
2024-09-01 23:03:47 -04:00
rm *.orig