Commit 31782bdc authored by Dom Sekotill's avatar Dom Sekotill
Browse files

Small change to .vim/spell/update.sh

parent ff50f732
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -8,14 +8,14 @@ if [ -z "${DEBUG}" ]; then
	quit_flag="-c :q"
fi

# remove commented-out entries
ex -E ${silent_flag} -c ':runtime spell/cleanadd.vim' ${quit_flag}

for file in "$SPELL_DIR"/*.add; do
	mv "${file}" "${file}.tmp"
	sort -f -u "${file}.tmp" > "${file}"
	rm "${file}.tmp"
	ex -E ${silent_flag} \
		-c ':mkspell! %' \
		-c ':runtime spell/cleanadd.vim' \
		${quit_flag} "${file}"
	ex -E ${silent_flag} -c ':mkspell! %' ${quit_flag} "${file}"
	[[ $(basename $file) =~ ^en ]] || FILES+=( "${file}" "${file}.spl" )
done