<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -19,12 +19,12 @@ if [[ -d $arg ]]; then
                 [[ ! -f $f ]] &amp;&amp; continue
                 echo &quot;encrypting $f&quot;
                 openssl des3 -e -in $f -out $f.enc -a -salt -kfile $scripts_dir/pass
-                rm $f
+		if [ $? == 0 ]; then rm $f; fi
         done
 elif [[ -f $arg ]]; then
         echo &quot;encrypting file $arg&quot;
         [[ -f $arg ]] &amp;&amp; openssl des3 -e -in $arg -out $arg.enc -a -salt -kfile $scripts_dir/pass
-        rm $arg
+        if [ $? == 0 ]; then rm $arg; fi
 
 fi
 </diff>
      <filename>encrypt_files.sh</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>05d181e48e8a30aff18a485d61520455d5441f78</id>
    </parent>
  </parents>
  <author>
    <name>root</name>
    <email>root@modb-base.(none)</email>
  </author>
  <url>http://github.com/raphinou/shbackup/commit/a763833e3786ef963ed8d2e4dde07d0eec2a509d</url>
  <id>a763833e3786ef963ed8d2e4dde07d0eec2a509d</id>
  <committed-date>2008-07-28T12:49:52-07:00</committed-date>
  <authored-date>2008-07-28T12:49:52-07:00</authored-date>
  <message>encrypt_files only remove file when successfully encrypted</message>
  <tree>c23e87cc39481866ba00f7c2eb9f78a6a62e25a4</tree>
  <committer>
    <name>root</name>
    <email>root@modb-base.(none)</email>
  </committer>
</commit>
