1
0
Fork 0
mirror of synced 2024-11-22 23:35:35 -05:00

remove zcompare's return

No need to make returns for tests that we aren't making success/failure
checks for; the function itself deals with what needs to be zcompiled.
This commit is contained in:
Matt Hamilton 2015-12-31 11:05:09 -05:00
parent 20d84ab79d
commit ef8e4bd3be

View file

@ -1,6 +1,5 @@
# #
# startup file read in interactive login shell # startup file read in interactive login shells
# not run again in subsuquent shells
# #
# The following code helps us by optimizing the existing framework. # The following code helps us by optimizing the existing framework.
# This includes zcompile, zcompdump, etc. # This includes zcompile, zcompdump, etc.
@ -12,12 +11,7 @@
# These jobs are asynchronous, and will not impact the interactive shell # These jobs are asynchronous, and will not impact the interactive shell
zcompare() { zcompare() {
if [[ -s ${1} && ( ! -s ${1}.zwc || ${1} -nt ${1}.zwc) ]]; then if [[ -s ${1} && ( ! -s ${1}.zwc || ${1} -nt ${1}.zwc) ]]; then
# needs zcomplie
zcompile ${1} zcompile ${1}
return 0
else
# no need to zcompile
return 1
fi fi
} }