From 1159eacf2ff77fb2031c2e4fba26ebbc56422d59 Mon Sep 17 00:00:00 2001 From: "Mahadik, Mukul Chandrakant" Date: Thu, 21 Dec 2023 20:43:39 -0700 Subject: [PATCH] Bulk deletion of site-package/tests Added a one line pipe command to remove all occurrences of site-packages/tests occurring in miniconda main directory. --- .docker/setup_config.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.docker/setup_config.sh b/.docker/setup_config.sh index ed33e711d..05456eea1 100644 --- a/.docker/setup_config.sh +++ b/.docker/setup_config.sh @@ -20,7 +20,7 @@ rm -rf /root/miniconda-23.1.0/pkgs/cryptography-38.0.4-py39h9ce1e76_0 rm -rf /root/miniconda-23.1.0/pkgs/wheel-0.37.1-pyhd3eb1b0_0 rm -rf /root/miniconda-23.5.2/pkgs/cryptography-39.0.1-py39h9ce1e76_2 rm -rf /root/miniconda-23.5.2/pkgs/certifi-2023.5.7-py39h06a4308_0 -rm -rf /root/miniconda-23.5.2/pkgs/conda-23.5.2-py39h06a4308_0/lib/python3.9/site-packages/tests/ +rm -rf /root/miniconda-23.5.2/pkgs/conda-23.5.2-py39h06a4308_0/lib/python3.9/site-packages/tests rm -rf /root/miniconda-23.5.2/pkgs/urllib3-1.26.16-py39h06a4308_0 rm -rf /root/miniconda-23.5.2/pkgs/urllib3-1.26.17-pyhd8ed1ab_0 rm -rf /root/miniconda-23.5.2/envs/emission/lib/python3.9/site-packages/urllib3-1.26.17.dist-info @@ -30,6 +30,7 @@ rm -rf /root/miniconda-23.5.2/lib/python3.9/site-packages/tests # Clean up the conda install conda clean -t find /root/miniconda-*/pkgs -wholename \*info/test\* -type d | xargs rm -rf +find ~/miniconda-23.5.2 -name \*tests\* -path '*/site-packages/*' | grep ".*/site-packages/tests" | xargs rm -rf if [ -d "webapp/www/" ]; then cp /index.html webapp/www/index.html