mirror of
https://github.com/swiftbar/SwiftBar.git
synced 2024-09-11 16:05:33 +03:00
Fixing chmod
This commit is contained in:
parent
6c5db152e3
commit
e364a6f52a
@ -59,15 +59,7 @@ extension Plugin {
|
||||
|
||||
func makeScriptExecutable(file: String) {
|
||||
guard prefs.makePluginExecutable else { return }
|
||||
let script = """
|
||||
if [[ -x "\(file)" ]]
|
||||
then
|
||||
echo "File "\(file)" is executable"
|
||||
else
|
||||
chmod +x "\(file)"
|
||||
fi
|
||||
"""
|
||||
_ = try? runScript(to: script)
|
||||
_ = try? runScript(to: "chmod", args: ["+x", "\(file.escaped())"])
|
||||
}
|
||||
|
||||
func refreshPluginMetadata() {
|
||||
|
Loading…
Reference in New Issue
Block a user