Use os_pipe

This commit is contained in:
mo8it
2024-04-25 01:56:01 +02:00
parent d8c2ab8349
commit 67fa017742
7 changed files with 135 additions and 43 deletions
+5 -1
View File
@@ -75,10 +75,14 @@ enum Subcommands {
Dev(DevCommands),
}
fn in_official_repo() -> bool {
Path::new("dev/rustlings-repo.txt").exists()
}
fn main() -> Result<()> {
let args = Args::parse();
if !DEBUG_PROFILE && Path::new("dev/rustlings-repo.txt").exists() {
if !DEBUG_PROFILE && in_official_repo() {
bail!("{OLD_METHOD_ERR}");
}