Skip to content

Commit

Permalink
Log history only if history logger workflow exists
Browse files Browse the repository at this point in the history
  • Loading branch information
mr-pennyworth committed May 24, 2021
1 parent 8c7426f commit cde63e5
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions info.plist
Expand Up @@ -483,8 +483,10 @@ else
fi
echo "$(date +%s) gif $1" >> "$HOME/Library/Application Support/Alfred/Workflow Data/mr.pennyworth.AlfredHistorySearch/query-history.txt"
histpath="$HOME/Library/Application Support/Alfred/Workflow Data/mr.pennyworth.AlfredHistorySearch/query-history.txt"
if [[ -f "$histpath" ]]; then
echo "$(date +%s) gif $1" >> "$histpath"
fi
</string>
<key>scriptargtype</key>
<integer>1</integer>
Expand Down Expand Up @@ -949,7 +951,10 @@ else
fi
echo "$(date +%s) sticker $1" &gt;&gt; "$HOME/Library/Application Support/Alfred/Workflow Data/mr.pennyworth.AlfredHistorySearch/query-history.txt"
histpath="$HOME/Library/Application Support/Alfred/Workflow Data/mr.pennyworth.AlfredHistorySearch/query-history.txt"
if [[ -f "$histpath" ]]; then
echo "$(date +%s) sticker $1" &gt;&gt; "$histpath"
fi
</string>
<key>scriptargtype</key>
<integer>1</integer>
Expand Down Expand Up @@ -1283,7 +1288,7 @@ rm *.gif</string>
</dict>
</dict>
<key>version</key>
<string>0.1.0</string>
<string>0.1.1</string>
<key>webaddress</key>
<string>https://github.com/mr-pennyworth/alfred-gif</string>
</dict>
Expand Down

0 comments on commit cde63e5

Please sign in to comment.