Changeset 4054989


Ignore:
Timestamp:
02/24/14 12:10:17 (5 months ago)
Author:
Kris Moore <kris@…>
Branches:
master, releng/10.0.1, releng/10.0.2
Children:
4f9718b
Parents:
3adfc87
Message:

When running warden get, if a target option set is missing, show help
text before exit.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src-sh/warden/bin/warden

    raba3187 r4054989  
    768768         OPT="${2}" 
    769769         JAILNAME="${3}" 
    770          if [ -z "${JAILNAME}" ] ; then exit_err "No jail specified!"; fi 
     770         if [ -z "${JAILNAME}" ] ; then help_get; exit 1; fi 
    771771         if [ ! -e "${JDIR}/${JAILNAME}" ] ; then exit_err "No such jail!"; fi 
    772772         set_warden_metadir 
Note: See TracChangeset for help on using the changeset viewer.