cartodb-4.42/script/clean_assets
2024-04-06 05:25:13 +00:00

6 lines
209 B
Bash
Executable File

#!/bin/sh
echo "--- Cleaning assets"
PACKAGE_VERSION=$(grep -m1 version package.json | awk -F: '{ print $2 }' | sed 's/[", ]//g')
find public/assets/* -type d ! -name $PACKAGE_VERSION -depth 0 | xargs rm -rf