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