tazpkg rev 530
tazpkg: Fixed PACKAGE_DIR to not error dirname when is empty. This error happens when using recharge option.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Wed Aug 31 18:28:32 2011 +0000 (2011-08-31) |
parents | 230623a89764 |
children | fea6087988d8 |
files | tazpkg |
line diff
1.1 --- a/tazpkg Tue Aug 30 12:31:42 2011 +0200 1.2 +++ b/tazpkg Wed Aug 31 18:28:32 2011 +0000 1.3 @@ -42,7 +42,7 @@ 1.4 # and actions. 1.5 COMMAND=$1 1.6 PACKAGE=${2%/} 1.7 -PACKAGE_DIR="$(cd $(dirname $PACKAGE) 2>/dev/null; pwd)" 1.8 +PACKAGE_DIR="$(cd $(dirname $PACKAGE 2>/dev/null) 2>/dev/null; pwd)" 1.9 [ -n "$PACKAGE" ] && 1.10 PACKAGE_FILE="$PACKAGE_DIR/${PACKAGE##*/}" 1.11 if [ -f "$PACKAGE" ]; then