Select Git revision
clear-cdk-cache.sh
clear-cdk-cache.sh 440 B
#!/bin/bash
set -e
# Check what will be deleted:
#(cd ../cdk; find . -wholename "*/cdk.out/asset.*" -type d -prune -print | xargs du -chs)
#(cd ../cdk; find . -wholename "*/cdk.out/.cache" -type d -prune -print | xargs du -chs)
# Actually delete them:
(cd ../cdk; find . -wholename "*/cdk.out/asset.*" -type d -prune -print -exec rm -rf '{}' \;)
(cd ../cdk; find . -wholename "*/cdk.out/.cache" -type d -prune -print -exec rm -rf '{}' \;)