Browse Source

Merge pull request #37 from missuo/master

fix: install script on macos
pull/48/head
煎饼果子卷鲨鱼辣椒 6 months ago
committed by GitHub
parent
commit
5884f82d66
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 4
      scripts/install.sh

4
scripts/install.sh

@ -144,7 +144,7 @@ backup_storage_json() {
# Detect OS / 检测操作系统 # Detect OS / 检测操作系统
detect_os() { detect_os() {
if [[ "$OSTYPE" == "darwin"* ]]; then if [[ "$OSTYPE" == "darwin"* ]]; then
echo "macos"
echo "darwin"
elif [[ "$OSTYPE" == "linux-gnu"* ]]; then elif [[ "$OSTYPE" == "linux-gnu"* ]]; then
echo "linux" echo "linux"
else else
@ -292,4 +292,4 @@ main() {
} }
# Run main function / 运行主函数 # Run main function / 运行主函数
main "$@"
main "$@"
Loading…
Cancel
Save