Skip to content

Commit

Permalink
fix(wordlists): issue with if statement
Browse files Browse the repository at this point in the history
  • Loading branch information
Yimura committed Feb 14, 2024
1 parent dde03b7 commit 2331b2a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions wordlists/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ FROM alpine/git
ARG ADD_WORDLIST_N_RULES=false

WORKDIR /opt/wordlists
RUN if [[ "$ADD_WORDLIST_N_RULES" == "true" ]] ; then git clone https://github.com/danielmiessler/SecLists.git --depth 1 &&\
find . -type f -iname '*.tar.gz' -exec tar -xf {} ; fi
RUN [[ "$ADD_WORDLIST_N_RULES" == "true" ]] && git clone https://github.com/danielmiessler/SecLists.git --depth 1 &&\
find . -type f -iname '*.tar.gz' -exec tar -xf {} \;

WORKDIR /opt/rules
RUN if [[ "$ADD_WORDLIST_N_RULES" == "true" ]] ; then git clone https://github.com/NotSoSecure/password_cracking_rules.git --depth=1; fi
RUN [[ "$ADD_WORDLIST_N_RULES" == "true" ]] && git clone https://github.com/NotSoSecure/password_cracking_rules.git --depth=1

0 comments on commit 2331b2a

Please sign in to comment.