diff --git a/bin/confetty b/bin/confetty index 10a8a918..b4845cd6 100755 --- a/bin/confetty +++ b/bin/confetty @@ -298,7 +298,7 @@ def fullpath_target(path, forcepath=False): del targparts[-1] else: targparts.append(component) - if forcepath and len(targparts) == 0 or targparts[-1] != "": + if forcepath and (len(targparts) == 0 or targparts[-1] != ""): targparts.append('') ntarget = '/'.join(targparts) if forcepath and (len(ntarget) == 0 or ntarget[-1] != '/'):