[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#334345: invalid test expression in preinst



On Mon, Oct 17, 2005 at 01:20:47PM +0200, Michal Cihar wrote:
> -  if [ "$2" -eq "" ]; then
> +  if [ "$2" = "" ]; then

Better yet:

  if [ -z "$2" ]; then

or at least:

  if [ "x$2" = "x" ]; then

--Paul Vojta, vojta@math.berkeley.edu



Reply to: