Could be that I never actually tested rolling back like that. Really strange. I can confirm that it dosn't work for me either, but I have no idea why that is.
On Tue, Oct 14, 2008 at 5:21 PM, Carsten Kraus <[EMAIL PROTECTED]> wrote: > Hi folks, > am new to fabric and to Linux in general. > I´m working with the sample provided in /doc/samples as of > commit cc336b5a8210e6b34082aeebef113b6e8d4431eb. (How do U reference git > 'revisions' btw? : ) > In the sample´s rollback() there is sth like: > sudo( > "export PREV=$(ls -1 %(someProjectVar)s|tail -1);" + > ... > ) > ..which sets the var $PREV for later use. > However, for me this isnt working - on my box(Ubuntu 8.04 Desktop) the var > $PREV will just be empty. > I even tried > run( > "export FOO='bar';" + > "echo $FOO;" > ) > This will also result in an empty 'out:' when I run it from fab - when I run > this being logged in on the target machine with the same user, it´s working > fine. > Is there an alternative, how I could store eg. the most recent foldername in > a var for rolling back purposes? > Apologies, if this is off-topic & thx for any pointer!! > Carsten > > > > > _______________________________________________ > Fab-user mailing list > [email protected] > http://lists.nongnu.org/mailman/listinfo/fab-user > > -- Venlig hilsen / Kind regards, Christian Vest Hansen.
_______________________________________________ Fab-user mailing list [email protected] http://lists.nongnu.org/mailman/listinfo/fab-user
