# HG changeset patch # User Christopher Rogers # Date 1312973770 0 # Node ID 135c69d40bb869c73114725e6fe1e64973b81097 # Parent 3765732d6e9b64df17c24d4818f51fa91f0216af tazpkg: Don't remove 2>/dev/null in $PACKAGE_DIR. There is no need to use [ -n $PACKAGE ] in $PACKAGE_DIR since its only used once in $PACKAGE_FILE and it don't stop 'can't cd '.'' errors. Also I don't think [ -n $PACKAGE ] fixed this problem. diff -r 3765732d6e9b -r 135c69d40bb8 tazpkg --- a/tazpkg Tue Aug 09 10:18:23 2011 +0200 +++ b/tazpkg Wed Aug 10 10:56:10 2011 +0000 @@ -42,7 +42,7 @@ # and actions. COMMAND=$1 PACKAGE=${2%/} -PACKAGE_DIR="$([ -n "$PACKAGE" ] && cd $(dirname $PACKAGE); pwd)" +PACKAGE_DIR="$(cd $(dirname $PACKAGE) 2>/dev/null; pwd)" [ -n "$PACKAGE" ] && PACKAGE_FILE="$PACKAGE_DIR/${PACKAGE##*/}" if [ -f "$PACKAGE" ]; then