diff --git a/scripts/pruneDataDirectoriesWithSudo.sh b/scripts/pruneDataDirectoriesWithSudo.sh new file mode 100755 index 0000000..ea3c093 --- /dev/null +++ b/scripts/pruneDataDirectoriesWithSudo.sh @@ -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 {} \;