Skip to content

Commit

Permalink
v1.7.3
Browse files Browse the repository at this point in the history
  • Loading branch information
JayBrown committed Sep 5, 2016
1 parent ca629cf commit dc0e49f
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 6 deletions.
10 changes: 7 additions & 3 deletions minisign-sign.sh
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
#!/bin/bash

# Minisign Miscellanea v1.7.2
# Minisign Miscellanea v1.7.3
# minisign-sign (shell script version)

LANG=en_US.UTF-8
export PATH=/usr/local/bin:$PATH
ACCOUNT=$(/usr/bin/id -un)
CURRENT_VERSION="1.72"
CURRENT_VERSION="1.73"

# check compatibility & determine correct Mac OS name
MACOS2NO=$(/usr/bin/sw_vers -productVersion | /usr/bin/awk -F. '{print $2}')
Expand Down Expand Up @@ -36,7 +36,11 @@ fi
# set notification function
notify () {
if [[ "$NOTESTATUS" == "osa" ]] ; then
/usr/bin/osascript -e 'display notification "$2" with title "minisign [$ACCOUNT]" subtitle "$1"' &>/dev/null
/usr/bin/osascript &>/dev/null << EOT
tell application "System Events"
display notification "$2" with title "minisign [" & "$ACCOUNT" & "]" subtitle "$1"
end tell
EOT
elif [[ "$NOTESTATUS" == "tn" ]] ; then
"$TERMNOTE_LOC/Contents/MacOS/terminal-notifier" \
-title "minisign [$ACCOUNT]" \
Expand Down
10 changes: 7 additions & 3 deletions minisign-verify.sh
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
#!/bin/bash

# Minisign Miscellanea v1.7.2
# Minisign Miscellanea v1.7.3
# minisign-verify (shell script version)

LANG=en_US.UTF-8
export PATH=/usr/local/bin:$PATH
ACCOUNT=$(/usr/bin/id -un)
CURRENT_VERSION="1.72"
CURRENT_VERSION="1.73"

# check compatibility
MACOS2NO=$(/usr/bin/sw_vers -productVersion | /usr/bin/awk -F. '{print $2}')
Expand Down Expand Up @@ -45,7 +45,11 @@ pkch () {
# set notification function
notify () {
if [[ "$NOTESTATUS" == "osa" ]] ; then
/usr/bin/osascript -e 'display notification "$2" with title "minisign [$ACCOUNT]" subtitle "$1"' &>/dev/null
/usr/bin/osascript &>/dev/null << EOT
tell application "System Events"
display notification "$2" with title "minisign [" & "$ACCOUNT" & "]" subtitle "$1"
end tell
EOT
elif [[ "$NOTESTATUS" == "tn" ]] ; then
"$TERMNOTE_LOC/Contents/MacOS/terminal-notifier" \
-title "minisign [$ACCOUNT]" \
Expand Down

0 comments on commit dc0e49f

Please sign in to comment.