Download react-spring/scripts/remove-dist-tag.sh from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 668 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/1e92f2d0b9e054abc23a53595fd89ad3e2b4a34e/react-spring/scripts/remove-dist-tag.sh
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset@1e92f2d0b9e054abc23a53595fd89ad3e2b4a34e/react-spring/scripts/remove-dist-tag.sh
-
curl -L -o remove-dist-tag.sh https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/1e92f2d0b9e054abc23a53595fd89ad3e2b4a34e/react-spring/scripts/remove-dist-tag.sh
668 Bytes
| # Force start from root folder | |
| cd "$(dirname "$0")/.." | |
| set -e | |
| tag=$DIST_TAG | |
| if [[ -z "$tag" ]]; then | |
| echo "Please enter the dist-tag you want to remove" | |
| read -r tag | |
| fi | |
| # This is the list of packages to remove the tag from | |
| packages=('react-spring' '@react-spring/animated' '@react-spring/core' '@react-spring/parallax' '@react-spring/rafz' '@react-spring/shared' '@react-spring/types' '@react-spring/web' '@react-spring/konva' '@react-spring/native' '@react-spring/three' '@react-spring/zdog') | |
| # Loop over the packages | |
| for package in "${packages[@]}"; do | |
| # Remove the tag | |
| echo "Removing $tag from $package" | |
| npm dist-tag rm $package $tag | |
| done |