This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| set -euo pipefail | |
| # install.sh | |
| # Lokalise CLI 安裝腳本 | |
| # 支援 macOS 和 Linux(x64 和 ARM64) | |
| INSTALL_DIR="${INSTALL_DIR:-$HOME/.lokalise}" | |
| # 可透過環境變數覆蓋,例如: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const controller = new AbortController(); | |
| const signal = controller.signal; | |
| function FetchUrl () { | |
| let urlToFetch = "http://opendata.cwb.gov.tw/opendata/DIV2/O-A0001-001.xml"; | |
| fetch(urlToFetch, { | |
| method: 'get', | |
| signal, | |
| }) |