Changes between Version 11 and Version 12 of CommittersTipsAndTricks


Ignore:
Timestamp:
Mar 18, 2009, 6:54:10 AM (15 years ago)
Author:
raimue (Rainer Müller)
Comment:

Simplify some conditions

Legend:

Unmodified
Added
Removed
Modified
  • CommittersTipsAndTricks

    v11 v12  
    3030    local dir=$2
    3131
    32     if [[ -z $dir ]]; then
     32    if [ -z $dir ]; then
    3333        dir=.
    3434    fi 
     
    4040    local cmd=""
    4141    while [[ $1 == -* ]]; do
    42         if [[ "$1" == "--" ]]; then
     42        if [ "$1" == "--" ]; then
    4343            break
    4444        fi
     
    4848    done
    4949
    50     if [[ -z $cmd ]]; then
     50    if [ -z $cmd ]; then
    5151        cmd="-p0"
    5252    fi