mirror of
https://github.com/hackacad/bastille.git
synced 2026-01-02 18:58:11 +01:00
[REF] SC2003: expr is antiquated
This commit is contained in:
@@ -191,7 +191,7 @@ generate_vnet_jail_conf() {
|
||||
local jail_list=$(bastille list jails)
|
||||
if [ -n "${jail_list}" ]; then
|
||||
local list_jails_num=$(echo "${jail_list}" | wc -l | awk '{print $1}')
|
||||
local num_range=$(expr "${list_jails_num}" + 1)
|
||||
local num_range=$((list_jails_num + 1))
|
||||
for _num in $(seq 0 "${num_range}"); do
|
||||
if ! grep -q "e${_num}b" "${bastille_jailsdir}"/*/jail.conf; then
|
||||
uniq_epair="bastille${_num}"
|
||||
|
||||
Reference in New Issue
Block a user