Changeset 2237 for trunk/scripts


Ignore:
Timestamp:
Mar 1, 2009, 12:25:13 PM (16 years ago)
Author:
broder
Message:

Don't loop infinitely if options are misspelled (or invalid).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/scripts/invirt-admin/invirt-admin

    r2161 r2237  
    3333        --dist)      dist=$2;      shift 2;;
    3434        --mirror)    mirror=$2;    shift 2;;
     35        *)
     36            echo "Unknown option: $1"
     37            echo
     38            usage
     39            ;;
    3540    esac
    3641done
Note: See TracChangeset for help on using the changeset viewer.