You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
6 lines
209 B
6 lines
209 B
4 years ago
|
#!/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
|