README and panic on no versions
This commit is contained in:
parent
10682a6f99
commit
aac555867e
|
@ -0,0 +1,4 @@
|
||||||
|
# Cwtch Update Bot
|
||||||
|
|
||||||
|
- Creates a persistent profile in ~/.cwtch/bots/update_bot
|
||||||
|
- Servers the latest version of cwtch from the directory `cwtch_dist`
|
|
@ -41,6 +41,9 @@ impl UpdateBot {
|
||||||
versions_dirs.push(path);
|
versions_dirs.push(path);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if versions_dirs.len() == 0 {
|
||||||
|
panic!("no cwtch versions detected in {}!", DIST_DIR)
|
||||||
|
}
|
||||||
versions_dirs.sort();
|
versions_dirs.sort();
|
||||||
println!("sorted vd: {:?}", versions_dirs);
|
println!("sorted vd: {:?}", versions_dirs);
|
||||||
let latest_version = versions_dirs[versions_dirs.len() - 1].clone();
|
let latest_version = versions_dirs[versions_dirs.len() - 1].clone();
|
||||||
|
|
Loading…
Reference in New Issue