Skip to content

Commit c082174

Browse files
committed
Merge pull request ohmyzsh#480 from PabloSerbo/master
I've just read your coding standards and updated the code to match.
2 parents d62f29b + c09e2f2 commit c082174

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

plugins/cake/cake.plugin.zsh

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
# Set this to 1 if you want to cache the tasks
2-
cacheTaskList=1
2+
cache_task_list=1
33

44
# Cache filename
5-
cacheFile='.cake-task-cache'
5+
cache_file='.cake_task_cache'
66

77
_cake_does_target_list_need_generating () {
88

9-
if [ $cacheTaskList -eq 0 ]; then
9+
if [ $cache_task_list -eq 0 ]; then
1010
return 1;
1111
fi
1212

13-
if [ ! -f $cacheFile ]; then return 0;
13+
if [ ! -f $cache_file ]; then return 0;
1414
else
15-
accurate=$(stat -f%m $cacheFile)
15+
accurate=$(stat -f%m $cache_file)
1616
changed=$(stat -f%m Cakefile)
1717
return $(expr $accurate '>=' $changed)
1818
fi
@@ -21,8 +21,8 @@ _cake_does_target_list_need_generating () {
2121
_cake () {
2222
if [ -f Cakefile ]; then
2323
if _cake_does_target_list_need_generating; then
24-
cake | sed -e "s/cake \([^ ]*\) .*/\1/" | grep -v '^$' > $cacheFile
25-
compadd `cat $cacheFile`
24+
cake | sed -e "s/cake \([^ ]*\) .*/\1/" | grep -v '^$' > $cache_file
25+
compadd `cat $cache_file`
2626
else
2727
compadd `cake | sed -e "s/cake \([^ ]*\) .*/\1/" | grep -v '^$'`
2828
fi

0 commit comments

Comments
 (0)