diff --git a/tests/sys/netpfil/pf/utils.subr b/tests/sys/netpfil/pf/utils.subr index 375a9d55642b..ac94ba78c0a5 100644 --- a/tests/sys/netpfil/pf/utils.subr +++ b/tests/sys/netpfil/pf/utils.subr @@ -51,17 +51,17 @@ pft_set_rules() pft_cleanup() { - if [ -f created_interfaces.lst ]; then - for ifname in `cat created_interfaces.lst` - do - ifconfig ${ifname} destroy - done - fi - if [ -f created_jails.lst ]; then for jailname in `cat created_jails.lst` do jail -r ${jailname} done fi + + if [ -f created_interfaces.lst ]; then + for ifname in `cat created_interfaces.lst` + do + ifconfig ${ifname} destroy + done + fi }