Changeset - cd421f3aa170
[Not reviewed]
0 1 0
Lance Edgar - 5 years ago 2019-09-13 17:53:28
lance@edbob.org
Fix behavior of `is_link()` function when a check fails
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general) First comment
rattail_fabric2/core.py
Show inline comments
 
@@ -60,7 +60,7 @@ def is_link(c, path, use_sudo=False):
 
    """
 
    func = c.sudo if use_sudo else c.run
 
    cmd = 'test -L "$(echo %s)"' % path
 
    result = func(cmd)
 
    result = func(cmd, warn=True)
 
    return False if result.failed else True
 

	
 

	
0 comments (0 inline, 0 general) First comment
You need to be logged in to comment. Login now