# HG changeset patch # User Christopher Rogers # Date 1314815312 0 # Node ID 93508c46a7cc24ca858bda69f22712f4e315ad33 # Parent 230623a89764b1c634bcdab81e5804d07c8dd60a tazpkg: Fixed PACKAGE_DIR to not error dirname when is empty. This error happens when using recharge option. diff -r 230623a89764 -r 93508c46a7cc tazpkg --- a/tazpkg Tue Aug 30 12:31:42 2011 +0200 +++ b/tazpkg Wed Aug 31 18:28:32 2011 +0000 @@ -42,7 +42,7 @@ # and actions. COMMAND=$1 PACKAGE=${2%/} -PACKAGE_DIR="$(cd $(dirname $PACKAGE) 2>/dev/null; pwd)" +PACKAGE_DIR="$(cd $(dirname $PACKAGE 2>/dev/null) 2>/dev/null; pwd)" [ -n "$PACKAGE" ] && PACKAGE_FILE="$PACKAGE_DIR/${PACKAGE##*/}" if [ -f "$PACKAGE" ]; then