# HG changeset patch # User Christophe Lincoln # Date 1305077984 -7200 # Node ID c83f48dace6305cd27e19206dc5009b403330acf # Parent c42a0f2c2826e6f1faa6872924fea1dae0ac35fa cook: avoid error (again) diff -r c42a0f2c2826 -r c83f48dace63 cook --- a/cook Wed May 11 03:34:21 2011 +0200 +++ b/cook Wed May 11 03:39:44 2011 +0200 @@ -576,7 +576,7 @@ rm -f $command && exit 1 else # Ls sort by name so the first file is the one we want. - old=$(ls $PKGS/$pkg-*.tazpkg | head -n 1 2>/dev/null) + old=$(ls $PKGS/$pkg-*.tazpkg 2>/dev/null | head -n 1) status [ "$old" ] && echo -n "Removing old: $(basename $old)" && \ rm -f $old && status