Skip to content
This repository has been archived by the owner on Aug 18, 2024. It is now read-only.

Commit

Permalink
fixed the builder bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Milk-Cool committed Oct 28, 2023
1 parent d338f37 commit 253e52a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ const APP_COPY = "flippulator_app_copy";

(async () => {
let folder;
if(fs.existsSync(file))
if(file != __filename && fs.existsSync(file))
folder = file;
else {
const folder = await question("Enter the application folder name: ");
folder = await question("Enter the application folder name: ");
if(!fs.existsSync(folder)) {
console.log("Folder does not exist!");
process.exit(1);
Expand Down

0 comments on commit 253e52a

Please sign in to comment.