Skip to content

Commit

Permalink
Merge branch 'meta-dev' into meta
Browse files Browse the repository at this point in the history
  • Loading branch information
mrFq1 committed Apr 23, 2024
2 parents 544f480 + 80dcae5 commit a9ed6f4
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"originHash" : "04a3b3bc2bf53686240dbd5a590ed7d847103b4a63a3a4cb1892d2b9b92e3a52",
"pins" : [
{
"identity" : "alamofire",
Expand All @@ -15,7 +16,7 @@
"location" : "https://github.com/mrFq1/ClashX-Dashboard",
"state" : {
"branch" : "dev",
"revision" : "272999024e836c5b006b0f3869fa4a1f5d27286b"
"revision" : "dd8a8f8f23838aa8d0ecc38734e915280604ed89"
}
},
{
Expand All @@ -32,8 +33,8 @@
"kind" : "remoteSourceControl",
"location" : "https://github.com/dagronf/DSFSparkline.git",
"state" : {
"revision" : "cfcf80b9e214500cbc12b795b7c9943151b8bd4f",
"version" : "4.6.4"
"revision" : "479b5e1d1332703f407ae42b580d203ca6c77a3d",
"version" : "6.0.2"
}
},
{
Expand Down Expand Up @@ -131,8 +132,8 @@
"kind" : "remoteSourceControl",
"location" : "https://github.com/siteline/swiftui-introspect",
"state" : {
"revision" : "121c146fe591b1320238d054ae35c81ffa45f45a",
"version" : "0.12.0"
"revision" : "0cd2a5a5895306bc21d54a2254302d24a9a571e4",
"version" : "1.1.3"
}
},
{
Expand All @@ -154,5 +155,5 @@
}
}
],
"version" : 2
"version" : 3
}
7 changes: 4 additions & 3 deletions ClashX/General/ClashProcess.swift
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,8 @@ class ClashProcess: NSObject {
resolver.reject(StartMetaError.configMissing)
return
}
guard FileManager.default.fileExists(atPath: path) else {

if FileManager.default.fileExists(atPath: path) {
resolver.fulfill_()
return
}
Expand Down Expand Up @@ -450,10 +451,10 @@ class ClashProcess: NSObject {
}

if re.hasPrefix("configuration file"),
re.hasSuffix("verify is successful") {
re.hasSuffix("test is successful") {
return nil
} else if re.hasPrefix("configuration file"),
re.hasSuffix("verify failed") {
re.hasSuffix("test failed") {
return results.count > 1
? results[results.count - 2]
: "Test failed, unknown result."
Expand Down

0 comments on commit a9ed6f4

Please sign in to comment.