From b57e41ef67729439d0b99f2afcd371317aedc70e Mon Sep 17 00:00:00 2001 From: Michael Long <mlong@mlong.us> Date: Fri, 5 Feb 2021 17:30:34 -0800 Subject: [PATCH] default_path --- exec/text_sec.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/exec/text_sec.js b/exec/text_sec.js index 11376cce73..03643a8785 100644 --- a/exec/text_sec.js +++ b/exec/text_sec.js @@ -132,14 +132,14 @@ while(bbs.online) { if(!path || console.aborted) break; if(!file_exists(path)) { - var path_textarea = backslash(txtsec_data(usrsec[cursec])) + path; - if (!file_exists(path_textarea)) { + var default_path = backslash(txtsec_data(usrsec[cursec])) + path; + if (!file_exists(default_path)) { console.print(bbs.text(FileNotFound)); break; } else { // only change the path if the file was found, otherwise // leave it alone so they can correct it - path = path_textarea; + path = default_path; } } console.printfile(path); -- GitLab