Fixed a bug causing generic portals missing as option.

This commit is contained in:
Matias Barcenas 2017-08-22 14:28:23 -05:00
parent 39afb4c8b7
commit 8cb32c92d3
1 changed files with 1 additions and 1 deletions

View File

@ -138,7 +138,7 @@ function captive_portal_set_site() {
local sites=() local sites=()
# Attempt adding only if the directory exists. # Attempt adding only if the directory exists.
if [ -d attacks/Captive\ Portal/sites/generic ]; then if [ -d attacks/Captive\ Portal/generic/languages ]; then
# Retrieve all generic sites available. # Retrieve all generic sites available.
for site in attacks/Captive\ Portal/generic/languages/*.lang; do for site in attacks/Captive\ Portal/generic/languages/*.lang; do
sites+=("${CaptivePortalGenericInterfaceOption}_`basename "${site%.lang}"`") sites+=("${CaptivePortalGenericInterfaceOption}_`basename "${site%.lang}"`")