Skip to content

Commit a6c9b03

Browse files
committed
v1.7
1 parent 83d6095 commit a6c9b03

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

HISTORY

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
October 20, 2018 v1.7
2+
- use Spotlight to find installers if no argument is given
3+
14
October 20, 2018 v1.6
25
- simplified check for macos starting with High Sierra in order not to
36
break on the successor of Mojave

osxapp_vers

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash
22

3-
# osxapp_vers 1.6
3+
# osxapp_vers 1.7
44
# Get product name, product version and build version of [Mac] OS X
55
# from "Install*OS X*.app", "Install macOS *.app" or "Mac OS X install DVD"
66
#
@@ -65,9 +65,9 @@ if [ $# = 0 ]; then
6565
# No args have been given
6666
# Find any OS X installers known to the Spotlight
6767
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+
)
7171
else
7272
# Use the program arguments as the input
7373
FILES=$(printf "%s\n" $@)

0 commit comments

Comments
 (0)