#!/bin/sh rm -rf ./_build rm -rf ./deps logs=$(find . -not -path '*/\.*' -name "logs" -type d) dev=$(find ${logs} -name "dev") files_and_dirs_in_logs_dev=$(ls -d ${dev}/*) rm -rf $files_and_dirs_in_logs_dev test=$(find ${logs} -name "test") files_and_dirs_in_logs_test=$(ls -d ${test}/*) rm -rf $files_and_dirs_in_logs_test find . -name "node_modules" -type d -exec rm -rf '{}' + case "$1" in -f) rm -rf ./apps/block_scout_web/priv/static;; esac