Skip to content

Commit

Permalink
Merge pull request #255 from codekow/make-simple
Browse files Browse the repository at this point in the history
update: make script simple
  • Loading branch information
pittar authored Nov 1, 2023
2 parents 92cd5e8 + 48f099a commit eb56001
Showing 1 changed file with 5 additions and 12 deletions.
17 changes: 5 additions & 12 deletions scripts/sort-wordlist.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,9 @@

set -e

TEMP_WORDLIST=.temp-wordlist-md
WORDLIST=.wordlist-md
lint_sort_wordlist(){
LC_COLLATE=C sort -u < .wordlist-md > tmp
mv tmp .wordlist-md
}

if [ -e ${TEMP_WORDLIST} ] ; then
rm ${TEMP_WORDLIST}
fi
LC_COLLATE=C sort -u < .wordlist-md > ${TEMP_WORDLIST}

if [ -e ${WORDLIST} ] ; then
rm ${WORDLIST}
fi

mv ${TEMP_WORDLIST} ${WORDLIST}
lint_sort_wordlist

0 comments on commit eb56001

Please sign in to comment.