Skip to content

Commit

Permalink
fix lua bug
Browse files Browse the repository at this point in the history
  • Loading branch information
AsteroidusTv committed Jul 31, 2023
1 parent e813976 commit e15aee4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/languages/lua.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ use crate::functions::functions;

pub fn main(project_name: &str) {
let main_folder: String = String::from(project_name.clone());
let lua_file: String = String::from(format!("{}/main.py", main_folder));
let lua_file: String = String::from(format!("{}/main.lua", main_folder));

let str_main_folder = main_folder.as_str();
let str_lua_file = lua_file.as_str();
Expand Down
2 changes: 2 additions & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,8 @@ fn main() {
languages::python::main(&project_name);
} else if choice == "assembly" {
languages::assembly::main(&project_name);
} else if choice == "lua" {
languages::lua::main(&project_name);
}
change_directory(project_name.as_str());
command_execute(git_command, git_args.clone());
Expand Down

0 comments on commit e15aee4

Please sign in to comment.