File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ change_vt
2929
3030# open subshell for own trap
3131(
32- # shellcheck disable=SC2317
32+ # shellcheck disable=SC2317,SC2329
3333 cleanup () {
3434 [[ -n " ${tmpfile} " ]] && rm -f " $tmpfile "
3535 }
Original file line number Diff line number Diff line change @@ -299,7 +299,7 @@ configure_network() {
299299
300300 # No JSON entry at all → original defaults (first iface DHCP, rest manual)
301301 if [[ -z " $json_idx " ]]; then
302- if [[ -z " ${! used_json[@ ]} " && " $i " == " 0" ]]; then
302+ if [[ -z " ${! used_json[* ]} " && " $i " == " 0" ]]; then
303303 echo " auto $iface "
304304 echo " iface $iface inet dhcp"
305305 echo " metric $metric "
@@ -316,7 +316,7 @@ configure_network() {
316316 config=$( jq_config -r " .network[$json_idx ]" )
317317 local dhcp
318318 dhcp=$( echo " $config " | jq -r ' .dhcp // empty' )
319- local iP
319+ local ip
320320 ip=$( echo " $config " | jq -r ' ."ip-address" // empty' )
321321 local mask
322322 mask=$( echo " $config " | jq -r ' ."network-mask" // empty' )
@@ -476,7 +476,6 @@ create_ssh_hostkey() {
476476 chmod 700 " ${SSH_CONFIG_DIR} "
477477
478478 shopt -s nullglob
479- local hostkeys=(" ${SSH_CONFIG_DIR} " /ssh_host_* _key)
480479 local persisted_keys=(" ${SSH_PERSIST_DIR} " /ssh_host_* _key)
481480
482481 if [ ${# persisted_keys[@]} -gt 0 ]; then
Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ change_vt() {
5050 VT_OLD=" $( fgconsole) "
5151 chvt 42
5252
53- # shellcheck disable=SC2317
53+ # shellcheck disable=SC2317,SC2329
5454 function finish {
5555 chvt " ${VT_OLD} "
5656 deallocvt 42
You can’t perform that action at this time.
0 commit comments