invites: make temporary invite files invisible
This commit is contained in:
parent
ea36f8bc85
commit
741eca4c61
|
@ -64,7 +64,7 @@ case $1 in
|
||||||
open|--open)
|
open|--open)
|
||||||
invite=`date -u +%N`
|
invite=`date -u +%N`
|
||||||
open=`echo $2 | sed 's/sparkleshare:\/\/addProject\///'`
|
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
|
mono "@expanded_libdir@/@PACKAGE@/SparkleShare.exe" --help
|
||||||
|
|
Binary file not shown.
|
@ -59,6 +59,7 @@ namespace SparkleShare {
|
||||||
|
|
||||||
if (xml.Contains ("<sparkleshare>")) {
|
if (xml.Contains ("<sparkleshare>")) {
|
||||||
File.WriteAllText (target_path, xml);
|
File.WriteAllText (target_path, xml);
|
||||||
|
File.SetAttributes (target_path, FileAttributes.Hidden);
|
||||||
Console.WriteLine ("Downloaded invite: " + url);
|
Console.WriteLine ("Downloaded invite: " + url);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue