tazpkg rev 523 4.7.1
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.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Wed Aug 10 10:56:10 2011 +0000 (2011-08-10) |
parents | 3765732d6e9b |
children | fc71214ea132 |
files | tazpkg |
line diff
1.1 --- a/tazpkg Tue Aug 09 10:18:23 2011 +0200 1.2 +++ b/tazpkg Wed Aug 10 10:56:10 2011 +0000 1.3 @@ -42,7 +42,7 @@ 1.4 # and actions. 1.5 COMMAND=$1 1.6 PACKAGE=${2%/} 1.7 -PACKAGE_DIR="$([ -n "$PACKAGE" ] && cd $(dirname $PACKAGE); pwd)" 1.8 +PACKAGE_DIR="$(cd $(dirname $PACKAGE) 2>/dev/null; pwd)" 1.9 [ -n "$PACKAGE" ] && 1.10 PACKAGE_FILE="$PACKAGE_DIR/${PACKAGE##*/}" 1.11 if [ -f "$PACKAGE" ]; then