|
From: <di...@us...> - 2007-01-30 16:55:21
|
Revision: 337
http://safekeep.svn.sourceforge.net/safekeep/?rev=337&view=rev
Author: dimi
Date: 2007-01-30 08:55:15 -0800 (Tue, 30 Jan 2007)
Log Message:
-----------
Fix string interpolation
Modified Paths:
--------------
safekeep/trunk/safekeep-test
Modified: safekeep/trunk/safekeep-test
===================================================================
--- safekeep/trunk/safekeep-test 2007-01-30 16:27:04 UTC (rev 336)
+++ safekeep/trunk/safekeep-test 2007-01-30 16:55:15 UTC (rev 337)
@@ -326,8 +326,7 @@
cmd = 'if test -f %s; then grep -i %s %s; fi' % (known_hosts, client, known_hosts)
fingerprint = rcmdout(cmd, None, None, 'read the client fingerprint')
if fingerprint:
- cmd = '(if test -f .ssh/known_hosts; then grep -iv %s %s .ssh/known_hosts; fi; cat) > .ssh/known_hosts.new; ' + \
- 'mv -f .ssh/known_hosts.new .ssh/known_hosts'
+ cmd = '(if test -f .ssh/known_hosts; then grep -iv %s .ssh/known_hosts; fi; cat) > .ssh/known_hosts.new; mv -f .ssh/known_hosts.new .ssh/known_hosts' % (client, )
rcmdin(cmd, fingerprint, 'backup-op', server, 'deploy client fingerprint on server')
snap_conf = ''
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|