Print this page
3762 nawk 'continue illegal outside of loops'

Split Close
Expand all
Collapse all
          --- old/usr/src/lib/brand/solaris10/zone/p2v.ksh
          +++ new/usr/src/lib/brand/solaris10/zone/p2v.ksh
↓ open down ↓ 450 lines elided ↑ open up ↑
 451  451  
 452  452          [[ ! -d $zoneconfig ]] && return
 453  453  
 454  454          if [[ -h $zoneconfig/index || ! -f $zoneconfig/index ]]; then
 455  455                  error "$e_badfile" "/etc/zones/index"
 456  456                  return
 457  457          fi
 458  458  
 459  459          NGZ=$(/usr/bin/nawk -F: '{
 460  460                  if (substr($1, 0, 1) == "#" || $1 == "global")
 461      -                        continue
      461 +                        next
 462  462  
 463  463                  if ($2 == "installed")
 464  464                          printf("%s ", $1)
 465  465          }' $zoneconfig/index)
 466  466  
 467  467          # Return if there are no installed zones to warn about.
 468  468          [[ -z "$NGZ" ]] && return
 469  469  
 470  470          log "$v_rmzones" "$NGZ"
 471  471  
 472  472          NGZP=$(/usr/bin/nawk -F: '{
 473  473                  if (substr($1, 0, 1) == "#" || $1 == "global")
 474      -                        continue
      474 +                        next
 475  475  
 476  476                  if ($2 == "installed")
 477  477                          printf("%s ", $3)
 478  478          }' $zoneconfig/index)
 479  479  
 480  480          log "$v_rmzonepaths"
 481  481  
 482  482          for i in $NGZP
 483  483          do
 484  484                  log "    %s" "$i"
↓ open down ↓ 238 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX