Update install.sh

This commit is contained in:
Vincent Young 2024-12-14 23:22:07 -05:00 committed by GitHub
parent ed46393aea
commit d45323f316
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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 "$@"