tazpkg rev 521
tazpkg: Fixed the 'can't cd to .' errors again. Using 2>/dev/null to PACKAGE_DIR to stop the error.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Mon Aug 08 19:21:29 2011 +0000 (2011-08-08) |
parents | 430a39421421 |
children | 3765732d6e9b |
files | tazpkg |
line diff
1.1 --- a/tazpkg Mon Aug 08 14:36:17 2011 +0000 1.2 +++ b/tazpkg Mon Aug 08 19:21:29 2011 +0000 1.3 @@ -42,8 +42,7 @@ 1.4 # and actions. 1.5 COMMAND=$1 1.6 PACKAGE=${2%/} 1.7 -PACKAGE_DIR="$(cd $(dirname $PACKAGE) ; pwd)" 1.8 -[ "$PACKAGE_DIR" = "." ] && PACKAGE_DIR="" 1.9 +PACKAGE_DIR="$(cd $(dirname $PACKAGE) 2>/dev/null; pwd)" 1.10 [ -n "$PACKAGE" ] && 1.11 PACKAGE_FILE="$PACKAGE_DIR/${PACKAGE##*/}" 1.12 if [ -f "$PACKAGE" ]; then