Skip to content

Commit

Permalink
Substitute 'Alfred 2' with 'Alfred 3' throughout.
Browse files Browse the repository at this point in the history
  • Loading branch information
ihowson committed Apr 7, 2017
1 parent 77a8fa7 commit b67cfab
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions scripts/first_run_check.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
# -----------------------------------------

#First run check
if [ ! -e "$HOME/Library/Application Support/Alfred 2/Workflow Data/carlosnz.eggtimer2/version" ]; then
if [ ! -e "$HOME/Library/Application Support/Alfred 3/Workflow Data/carlosnz.eggtimer2/version" ]; then
./scripts/first_install.sh
exit
fi


ver=$(cat "$HOME/Library/Application Support/Alfred 2/Workflow Data/carlosnz.eggtimer2/version")
ver=$(cat "$HOME/Library/Application Support/Alfred 3/Workflow Data/carlosnz.eggtimer2/version")
if [ $ver -lt 205 ]; then
./scripts/first_install.sh
fi
4 changes: 2 additions & 2 deletions scripts/includes.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ shopt -s expand_aliases
alias growlnotify='/usr/local/bin/growlnotify EggTimer --image icon.png -m '

#Working directories
EGGPREFS="$HOME/Library/Application Support/Alfred 2/Workflow Data/carlosnz.eggtimer2"
EGGWD="$HOME/Library/Caches/com.runningwithcrayons.Alfred-2/Workflow Data/carlosnz.eggtimer2"
EGGPREFS="$HOME/Library/Application Support/Alfred 3/Workflow Data/carlosnz.eggtimer2"
EGGWD="$HOME/Library/Caches/com.runningwithcrayons.Alfred-3/Workflow Data/carlosnz.eggtimer2"

wfdir=$PWD #Get workflow directory
4 changes: 2 additions & 2 deletions scripts/input_new_alarm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
source ./scripts/includes.sh

#Working directories
EGGPREFS="$HOME/Library/Application Support/Alfred 2/Workflow Data/carlosnz.eggtimer2"
EGGWD="$HOME/Library/Caches/com.runningwithcrayons.Alfred-2/Workflow Data/carlosnz.eggtimer2"
EGGPREFS="$HOME/Library/Application Support/Alfred 3/Workflow Data/carlosnz.eggtimer2"
EGGWD="$HOME/Library/Caches/com.runningwithcrayons.Alfred-3/Workflow Data/carlosnz.eggtimer2"

boilerplate='<?xml version="1.0"?>
<items>
Expand Down
2 changes: 1 addition & 1 deletion scripts/login_check.workflow/Contents/document.wflow
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
# by Carl Smith (@CarlosNZ)
# -----------------------------------------

eggwd=$(cat "$HOME/Library/Application Support/Alfred 2/Workflow Data/carlosnz.eggtimer2/eggwd.txt")
eggwd=$(cat "$HOME/Library/Application Support/Alfred 3/Workflow Data/carlosnz.eggtimer2/eggwd.txt")

cd "$eggwd" &amp;&amp; "$eggwd/scripts/login_script.sh" &amp;</string>
<key>CheckedForUserDefaultShell</key>
Expand Down

0 comments on commit b67cfab

Please sign in to comment.