Download goalert/devtools/scripts/arch-check.sh from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 474 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/f5071caa249115f3b590492f1c8eb471e02aae4b/goalert/devtools/scripts/arch-check.sh
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset@f5071caa249115f3b590492f1c8eb471e02aae4b/goalert/devtools/scripts/arch-check.sh
-
curl -L -o arch-check.sh https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/f5071caa249115f3b590492f1c8eb471e02aae4b/goalert/devtools/scripts/arch-check.sh
474 Bytes
| GO_ARCH=$(go env GOARCH) | |
| SYS_ARCH=$(uname -m) | |
| # map x86_64 to amd64 | |
| if [ "$SYS_ARCH" = "x86_64" ]; then | |
| SYS_ARCH="amd64" | |
| fi | |
| if ! [ "$GO_ARCH" = "$SYS_ARCH" ]; then | |
| echo "\033[1;33mWARNING: GOARCH ($GO_ARCH) does not match your system architecture ($SYS_ARCH)\033[0m" | |
| echo "\033[1;33mThis may cause issues when building or starting the project.\033[0m" | |
| echo "\033[1;33mPlease ensure that you have the correct version of Go installed.\033[0m" | |
| fi | |