[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Fab-user] Directory not deleting
From: |
Brent Tubbs |
Subject: |
Re: [Fab-user] Directory not deleting |
Date: |
Fri, 24 Jun 2011 16:43:55 -0700 |
I found the problem. When listing the directory contents I was
splitting on "\n" instead of "\r\n". When then using the directory
names with trailing "\r"s it was throwing everything off, even though
it looked fine from the output.
On Fri, Jun 24, 2011 at 4:14 PM, Brent Tubbs <address@hidden> wrote:
> Hi all,
>
> I'm calling this in my fabfile:
>
> sudo('rm -rf /srv/old_version_of_my_site')
>
> The command line output when I run the fabfile looks like it should be
> working:
>
> [mysite.com] sudo: rm -rf /srv/old_version_of_my_site
>
> But when I actually SSH to the server and look with 'ls /srv' my old
> folder is still there. Has anyone seen this before or have any idea
> what's going on?
>
> Brent
>