diff --git a/build_ohana.sh b/build_ohana.sh index 8b27952aa4e710af3eb602b09e6f5e91fc2580b4..fb1d01c2d5556f9f4def113f53ef2d1c484699d3 100755 --- a/build_ohana.sh +++ b/build_ohana.sh @@ -114,9 +114,9 @@ if [[ $build_option == 2 || $build_option == 4 ]]; then cd .. mv ohana/dist . cd dist/css - rm !(all.min.css|uw-dashboard.min.css) + find . -type f -not \( -name 'all.min.css' -or -name 'uw-dashboard.min.css' \) -delete cd ../js - rm !(all.min.js) + find . -type f -not -name 'all.min.js' -delete cd .. if [[ -d vendor ]]; then rm -rf vendor