cookutils rev 136
cook: avoid error (again)
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Wed May 11 03:39:44 2011 +0200 (2011-05-11) |
parents | c42a0f2c2826 |
children | 130af248f197 |
files | cook |
line diff
1.1 --- a/cook Wed May 11 03:34:21 2011 +0200 1.2 +++ b/cook Wed May 11 03:39:44 2011 +0200 1.3 @@ -576,7 +576,7 @@ 1.4 rm -f $command && exit 1 1.5 else 1.6 # Ls sort by name so the first file is the one we want. 1.7 - old=$(ls $PKGS/$pkg-*.tazpkg | head -n 1 2>/dev/null) 1.8 + old=$(ls $PKGS/$pkg-*.tazpkg 2>/dev/null | head -n 1) 1.9 status 1.10 [ "$old" ] && echo -n "Removing old: $(basename $old)" && \ 1.11 rm -f $old && status