mirror of https://github.com/zimfw/zimfw.git
We were already compiling at these paths, but not cleaning the compiled files. Fixes #399pull/437/head
parent
5059dd2c65
commit
ccace0ca74
@ -1,7 +1,9 @@ |
||||
_zimfw_clean_compiled() { |
||||
# Array with unique dirs. ${ZIM_HOME} or any subdirectory should only occur once. |
||||
local -Ur zscriptdirs=(${ZIM_HOME} ${${_zdirs##${ZIM_HOME}/*}:A}) |
||||
local zopt |
||||
if (( _zprintlevel > 0 )) zopt='-v' |
||||
command rm -f ${zopt} ${ZIM_HOME}/**/*.zwc(|.old) || return 1 |
||||
command rm -f ${zopt} ${^zscriptdirs}/**/*.zwc(|.old)(N) || return 1 |
||||
command rm -f ${zopt} <%= home %>/<%= startup_files_glob %>.zwc(|.old)(N) || return 1 |
||||
_zimfw_print -P '<%= done %>Done with clean-compiled. Run %Bzimfw compile%b to re-compile.' |
||||
} |
||||
|
Loading…
Reference in new issue