Review Board 1.7.22


SQOOP-775 Sqoop2: addtowar.sh script is silently ignoring unknown arguments

Review Request #8608 - Created Dec. 14, 2012 and submitted

Jarek Cecho
SQOOP-775
Reviewers
Sqoop
sqoop-sqoop2
Added the "else" clause.

 

Diff revision 1 (Latest)

  1. dist/src/main/bin/addtowar.sh: Loading...
dist/src/main/bin/addtowar.sh
Revision b5ffc0eb67178795326ec7b15bd144e7ad351acc New Change
[20] 228 lines
[+20]
229
      echo
229
      echo
230
      printUsage
230
      printUsage
231
      exit -1
231
      exit -1
232
    fi
232
    fi
233
    warPath=$1
233
    warPath=$1

    
   
234
  else

    
   
235
    echo

    
   
236
    echo "Unknown argument: $1"

    
   
237
    echo

    
   
238
    printUsage

    
   
239
    exit -1
234
  fi
240
  fi
235

    
   
241

   
236
  shift
242
  shift
237
done
243
done
238

    
   
244

   
[+20] [20] 117 lines
  1. dist/src/main/bin/addtowar.sh: Loading...