Skip to content

Commit

Permalink
Merge pull request #1 from leventyalcin/fix/path_and_cache
Browse files Browse the repository at this point in the history
Fix/path and cache
  • Loading branch information
dac09 committed Feb 4, 2016
2 parents c9ab274 + e672dc8 commit 126a792
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion search.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ queryJql=`echo $queryJql | sed s/{query}/$query/g`
filename="cache/jira-$query.txt"

# Remove files older than five minutes
rm `find cache -mmin +${cacheTTLinMins}`
ping -c 1 -t 1 8.8.8.8 > /dev/null && find cache -mmin +${cacheTTLinMins} -exec rm {} \;

# Create directory if required
mkdir -p cache
Expand Down

0 comments on commit 126a792

Please sign in to comment.