c09e2f2986aafbf2a67004f8df6b5dd10abb8d61

Author
Paul Serby <paul.serby@clock.co.uk>
Committer
Paul Serby <paul.serby@clock.co.uk>
Date

Message

Bringing inline with oh-my-zsh coding convensions

Diff

 1diff --git a/plugins/cake/cake.plugin.zsh b/plugins/cake/cake.plugin.zsh
 2index 75997521a92e7095c188f70a5e8e1abf1d1388c8..f968c71d582a35a9e175f0fc3a55d220f71d85fe 100644
 3--- a/plugins/cake/cake.plugin.zsh
 4+++ b/plugins/cake/cake.plugin.zsh
 5@@ -1,18 +1,18 @@
 6 # Set this to 1 if you want to cache the tasks
 7-cacheTaskList=1
 8+cache_task_list=1
 9 
10 # Cache filename
11-cacheFile='.cake-task-cache'
12+cache_file='.cake_task_cache'
13 
14 _cake_does_target_list_need_generating () {
15 
16-	if [ $cacheTaskList -eq 0 ]; then
17+	if [ $cache_task_list -eq 0 ]; then
18 		return 1;
19 	fi
20 
21-	if [ ! -f $cacheFile ]; then return 0;
22+	if [ ! -f $cache_file ]; then return 0;
23 	else
24-		accurate=$(stat -f%m $cacheFile)
25+		accurate=$(stat -f%m $cache_file)
26 		changed=$(stat -f%m Cakefile)
27 		return $(expr $accurate '>=' $changed)
28 	fi
29@@ -21,8 +21,8 @@ _cake_does_target_list_need_generating () {
30 _cake () {
31 	if [ -f Cakefile ]; then
32 		if _cake_does_target_list_need_generating; then
33-			cake | sed -e "s/cake \([^ ]*\) .*/\1/" | grep -v '^$' > $cacheFile
34-			compadd `cat $cacheFile`
35+			cake | sed -e "s/cake \([^ ]*\) .*/\1/" | grep -v '^$' > $cache_file
36+			compadd `cat $cache_file`
37 		else
38 			compadd `cake | sed -e "s/cake \([^ ]*\) .*/\1/" | grep -v '^$'`
39 		fi