Fix: remove_with_path - Avoir dirname errors by checking for argument.
author |
Antoine Bodin <gokhlayeh@slitaz.org> |
date |
Wed Dec 08 16:26:45 2010 +0100 (2010-12-08) |
parents |
b9a3c7382e15 |
children |
6f594569d967 |
files |
tazpkg |
line diff
1.1 --- a/tazpkg Wed Dec 08 16:24:53 2010 +0100
1.2 +++ b/tazpkg Wed Dec 08 16:26:45 2010 +0100
1.3 @@ -388,6 +388,9 @@
1.4
1.5 remove_with_path()
1.6 {
1.7 + # Avoid dirname errors by checking for argument.
1.8 + [ "$1" ] || return
1.9 +
1.10 local dir
1.11 rm -f $1 2>/dev/null
1.12 dir="$1"