File tree Expand file tree Collapse file tree 1 file changed +13
-4
lines changed
Expand file tree Collapse file tree 1 file changed +13
-4
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ cd "$(dirname "$0")/.."
44OPT_HELP=false
55OPT_TEXT=false
66OPT_DISPLAY=false
7+ OPT_REVEAL_IN_FINDER=false
78OUTFILE=
89
910# parse args
@@ -26,6 +27,10 @@ while [[ $# -gt 0 ]]; do
2627 OPT_DISPLAY=true
2728 shift
2829 ;;
30+ -reveal-in-finder)
31+ OPT_REVEAL_IN_FINDER=true
32+ shift
33+ ;;
2934 -* )
3035 echo " $0 : Unknown option $1 " >&2
3136 OPT_HELP=true
4853if $OPT_HELP ; then
4954 echo " Usage: $0 [options] <outfile>"
5055 echo " Options:"
51- echo " -h, -help Show help."
52- echo " -text Include Inter Text"
53- echo " -display Include Inter Display"
54- echo " -a, -all Include all fonts"
56+ echo " -h, -help Show help."
57+ echo " -text Include Inter Text"
58+ echo " -display Include Inter Display"
59+ echo " -a, -all Include all fonts"
60+ echo " -reveal-in-finder After creating the zip file, show it in Finder"
5561 exit 1
5662fi
5763
@@ -143,3 +149,6 @@ popd >/dev/null
143149rm -rf " $ZIPDIR "
144150
145151echo " Created $OUTFILE "
152+ if $OPT_REVEAL_IN_FINDER && [ -f /usr/bin/open ]; then
153+ /usr/bin/open --reveal " $OUTFILE "
154+ fi
You can’t perform that action at this time.
0 commit comments