Skip to content

Commit

Permalink
Change <swiftbar.environment> string format #322
Browse files Browse the repository at this point in the history
  • Loading branch information
melonamin committed Jul 17, 2022
1 parent bf73974 commit 1e3f6b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion SwiftBar/Plugin/PluginMetadata.swift
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ class PluginMetadata: ObservableObject {
.dropFirst()
.dropLast()
.split(separator: ",").forEach { str in
let pair = str.split(separator: ":").map { $0.trimmingCharacters(in: .whitespaces) }
let pair = str.split(separator: "=").map { $0.trimmingCharacters(in: .whitespaces) }
guard pair.count == 2 else { return }
environment[pair[0]] = pair[1]
}
Expand Down

0 comments on commit 1e3f6b4

Please sign in to comment.