File tree Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change
1
+ October 20, 2018 v1.7
2
+ - use Spotlight to find installers if no argument is given
3
+
1
4
October 20, 2018 v1.6
2
5
- simplified check for macos starting with High Sierra in order not to
3
6
break on the successor of Mojave
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
3
- # osxapp_vers 1.6
3
+ # osxapp_vers 1.7
4
4
# Get product name, product version and build version of [Mac] OS X
5
5
# from "Install*OS X*.app", "Install macOS *.app" or "Mac OS X install DVD"
6
6
#
@@ -65,9 +65,9 @@ if [ $# = 0 ]; then
65
65
# No args have been given
66
66
# Find any OS X installers known to the Spotlight
67
67
FILES=$(
68
- mdfind " kMDItemFSName == 'Install OS X *.app'" 2> /dev/null; \
69
- mdfind " kMDItemFSName == 'Install macOS *.app'" 2> /dev/null; \
70
- )
68
+ mdfind " kMDItemFSName == 'Install OS X *.app'" 2> /dev/null; \
69
+ mdfind " kMDItemFSName == 'Install macOS *.app'" 2> /dev/null; \
70
+ )
71
71
else
72
72
# Use the program arguments as the input
73
73
FILES=$( printf " %s\n" $@ )
You can’t perform that action at this time.
0 commit comments