Vincent Young
6 months ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
2 additions and
2 deletions
-
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 "$@" |