thought i fixed that

pull/6/head
dvkt 5 years ago
parent 770c1b15fb
commit 4ff3e5e64e

@ -3,6 +3,7 @@ use std::io;
use std::io::{Read, Write};
use std::net::TcpStream;
use std::net::ToSocketAddrs;
use std::os::unix::fs::OpenOptionsExt;
use std::time::Duration;
pub const TCP_TIMEOUT_IN_SECS: u64 = 1;
@ -140,6 +141,7 @@ pub fn download_url(url: &str) -> io::Result<String> {
.write(true)
.create(true)
.truncate(true)
.mode(0o770)
.open(path)
.and_then(|mut file| {
let mut buf = [0; 1024];

@ -145,7 +145,7 @@ impl UI {
return;
}
print!(
"\r{}Downloading {}{}{}{}",
"\r{}{}Downloading {}{}{}",
termion::cursor::Hide,
color::Fg(color::LightBlack),
download_url,

Loading…
Cancel
Save