Add script to prune _data directories with sudo

pull/55/head
Dan Caseley 2022-07-25 17:02:27 +01:00 committed by Guus der Kinderen
parent 7baa48e888
commit 905c512e7b
1 changed files with 6 additions and 0 deletions

View File

@ -0,0 +1,6 @@
#!/bin/bash
# Get the path of the root of the project. It could be called from anywhere, so use this to get full paths.
# Assumes that this script lives in a directory, which lives in the root.
ROOTPATH="$( cd "$(dirname "$0")/.."; pwd -P )"
find "$ROOTPATH" -name _data -type d -prune -exec sudo rm -rf {} \;