invites: make temporary invite files invisible

This commit is contained in:
Hylke Bons 2013-06-13 17:56:54 +01:00
parent 714ac3ea83
commit 11f80df99f
3 changed files with 2 additions and 1 deletions

View file

@ -64,7 +64,7 @@ case $1 in
open|--open)
invite=`date -u +%N`
open=`echo $2 | sed 's/sparkleshare:\/\/addProject\///'`
curl --insecure --output ~/SparkleShare/$invite.xml $open
curl --insecure --output ~/SparkleShare/.$invite.xml $open
;;
*)
mono "@expanded_libdir@/@PACKAGE@/SparkleShare.exe" --help

View file

@ -59,6 +59,7 @@ namespace SparkleShare {
if (xml.Contains ("<sparkleshare>")) {
File.WriteAllText (target_path, xml);
File.SetAttributes (target_path, FileAttributes.Hidden);
Console.WriteLine ("Downloaded invite: " + url);
}
}