- Minor bug fixes
- Chaned ls 1 -> ls -1
This commit is contained in:
deltaxflux 2018-07-11 00:41:38 +02:00
parent bb5dc2786e
commit b615cf7d09
2 changed files with 4 additions and 4 deletions

View File

@ -370,7 +370,7 @@ if [ ! "$HandshakeSnooperCLIArguments" ]; then
getopt --options="v:i:j:a" \
--longoptions="verifier:,interval:,jammer:,asynchronous" \
--name="Handshake Snooper V$FLUXIONVersion.$FLUXIONRevision" -- "$@"
);n then
);then
echo -e "${CRed}Aborted$CClr, parameter error detected..."
sleep 5
fluxion_handle_exit

View File

@ -4,7 +4,7 @@
# ================== < FLUXION Parameters > ================== #
# ============================================================ #
# Path to directory containing the FLUXION executable script.
readonly FLUXIONPath=$(dirname "$(readlink -f "$0")")
readonly FLUXIONPath=$(dirname $(readlink -f "$0"))
# Path to directory containing the FLUXION library (scripts).
readonly FLUXIONLibPath="$FLUXIONPath/lib"
@ -693,7 +693,7 @@ fluxion_set_language() {
if [ ! "$FluxionLanguage" ]; then
# Get all languages available.
local languageCodes
readarray -t languageCodes < <(ls 1 language | sed -E 's/\.sh//')
readarray -t languageCodes < <(ls -1 language | sed -E 's/\.sh//')
local languages
readarray -t languages < <(
@ -1693,7 +1693,7 @@ fluxion_set_attack() {
fluxion_target_show
local attacks
readarray -t attacks < <(ls 1 "$FLUXIONPath/attacks")
readarray -t attacks < <(ls -1 "$FLUXIONPath/attacks")
local descriptions
readarray -t descriptions < <(