[Bps-public-commit] SD branch, master, updated. 0.74-45-g00a04f9
? sunnavy
sunnavy at bestpractical.com
Thu Aug 5 06:12:25 EDT 2010
The branch, master has been updated
via 00a04f9b894b34d52be2f18e37e30f28b7d9fb2c (commit)
from 354db4babff7b855790e213d097fb1884ccbac56 (commit)
Summary of changes:
lib/App/SD/CLI/Command/Publish.pm | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
- Log -----------------------------------------------------------------
commit 00a04f9b894b34d52be2f18e37e30f28b7d9fb2c
Author: sunnavy <sunnavy at bestpractical.com>
Date: Thu Aug 5 18:14:13 2010 +0800
tiny fix: becareful about the short circuit operator &&
diff --git a/lib/App/SD/CLI/Command/Publish.pm b/lib/App/SD/CLI/Command/Publish.pm
index d43cb6f..b9daeae 100644
--- a/lib/App/SD/CLI/Command/Publish.pm
+++ b/lib/App/SD/CLI/Command/Publish.pm
@@ -105,7 +105,7 @@ sub work_with_urls {
}
# if $url is absolute, let's make it relative
- if ( $current_depth && $url =~ s{^/}{} ) {
+ if ( $url =~ s{^/}{} && $current_depth ) {
$url = ( '../' x $current_depth ) . $url;
}
-----------------------------------------------------------------------
More information about the Bps-public-commit
mailing list