Hi Andreas, all,

[Jean Delvare]
> rename_file()
> {
>       local old=$1
>       local new=$2
>       local newdir=$(dirname "$new")
>
>       [ -d "$dirname" ] || mkdir -p "$dirname" || return 1

Note that I made a typo here, $dirname should obviously be $newdir.
That's what happens when you type shell code directly in a mail without
any testing. Sorry.

[Andreas Gruenbacher]
> ... even more so. I'll apply that.

OK, thanks :)
--
Jean Delvare


_______________________________________________
Quilt-dev mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/quilt-dev

Reply via email to