tabrindle / envinfo

Generate a report about your development environment for debugging and issue reporting
MIT License
760 stars 58 forks source link

fix: get the first app #231

Closed PengBoUESTC closed 1 year ago

PengBoUESTC commented 1 year ago

I get multiple output of this command: envinfo git:(main) mdfind kMDItemCFBundleIdentifier=='com.google.Chrome' /Applications/Google Chrome.app /System/Volumes/Data/Previous Content/Recovered Items/Applications/Google Chrome.app

and i can't get the version of chrome

➜ envinfo git:(fix/multi-output) /usr/libexec/PlistBuddy -c "Print ApplicationProperties:CFBundleShortVersionString" /Applications/Google\ Chrome.app\ /System/Volumes/Data/Previous\ Content/Recovered\ Items/Applications/Google\ Chrome.app/Contents/Info.plist File Doesn't Exist, Will Create: /Applications/Google Chrome.app /System/Volumes/Data/Previous Content/Recovered Items/Applications/Google Chrome.app/Contents/Info.plist Print: Entry, "ApplicationProperties:CFBundleShortVersionString", Does Not Exist

232