Simplify pm3Location creation via Homebrew
This commit is contained in:
1 parent
a3a086fa92
commit
ca2691c4ce
1 file changed
+1
-3
@@ -58,9 +58,7 @@ def main():
|
||||
# Check the return code to determine if the command was successful
|
||||
if result.returncode == 0 or result.returncode == 1:
|
||||
print("Found installation via Homebrew!")
|
||||
pm3Location = result.stdout.decode("utf-8")
|
||||
pm3Location = pm3Location.replace("\n","").replace("\r","")
|
||||
pm3Location = Path(pm3Location)
|
||||
pm3Location = Path(result.stdout.decode("utf-8").strip())
|
||||
except Exception as e:
|
||||
# If Homebrew command failed, it's probably not installed
|
||||
pass
|
||||
|
||||
Reference in new issue
Block a user