mirror of
https://github.com/hackacad/bastille.git
synced 2025-12-25 15:00:44 +01:00
shellcheck errors: SC2068 Double quote array expansions to avoid re-splitting elements.
This commit is contained in:
@@ -58,7 +58,7 @@ error_notify() {
|
||||
|
||||
# Notify message on error and exit
|
||||
error_exit() {
|
||||
error_notify $@
|
||||
error_notify "$@"
|
||||
exit 1
|
||||
}
|
||||
|
||||
|
||||
@@ -183,21 +183,21 @@ while [ $# -gt 0 ]; do
|
||||
jail_port=$3
|
||||
shift 3
|
||||
if [ $# -gt 3 ]; then
|
||||
for last in $@; do
|
||||
for last in "$@"; do
|
||||
true
|
||||
done
|
||||
if [ $2 == "(" ] && [ $last == ")" ] ; then
|
||||
check_jail_validity
|
||||
persist_rdr_log_rule $proto $host_port $jail_port $@
|
||||
load_rdr_log_rule $proto $host_port $jail_port $@
|
||||
persist_rdr_log_rule $proto $host_port $jail_port "$@"
|
||||
load_rdr_log_rule $proto $host_port $jail_port "$@"
|
||||
shift $#
|
||||
else
|
||||
usage
|
||||
fi
|
||||
elif [ $# -eq 1 ]; then
|
||||
check_jail_validity
|
||||
persist_rdr_log_rule $proto $host_port $jail_port $@
|
||||
load_rdr_log_rule $proto $host_port $jail_port $@
|
||||
persist_rdr_log_rule $proto $host_port $jail_port "$@"
|
||||
load_rdr_log_rule $proto $host_port $jail_port "$@"
|
||||
shift 1
|
||||
else
|
||||
usage
|
||||
|
||||
Reference in New Issue
Block a user