mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2024-12-20 06:07:57 +00:00
Remove tests and docs, we don't need them at runtime.
This commit is contained in:
parent
67c5858ff1
commit
550aebb163
@ -15,4 +15,8 @@ if [ $NODE_ENV == 'production' ]; then
|
|||||||
find . -name '*.c' -delete
|
find . -name '*.c' -delete
|
||||||
# And the tar files (sqlite3 module again)
|
# And the tar files (sqlite3 module again)
|
||||||
find . -name '*.tar.*' -delete
|
find . -name '*.tar.*' -delete
|
||||||
|
# Who needs tests and docs? Pffft! - Ignoring errors because find isn't a fan of us deleting directories whilst it's trying to search within them.
|
||||||
|
find . -type d -name 'test' -exec rm -rf '{}' \; 2> /dev/null || true
|
||||||
|
find . -type d -name 'doc' -exec rm -rf '{}' \; 2> /dev/null || true
|
||||||
|
find . -type d -name 'man' -exec rm -rf '{}' \; 2> /dev/null || true
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user