Skip to content
Snippets Groups Projects
Commit 0f63b23f authored by echicken's avatar echicken :chicken:
Browse files

If on an MS-DOS computer, run pkunzip.exe from the system exec

directory, elsewise just make assumtion that pkunzip.zip is on
the PATH somewheres, and then unzip it, and then run it.
Most of this commit message is wildly inaccurate.
parent 883f6001
Branches
Tags
No related merge requests found
......@@ -25,9 +25,10 @@ function download(url, target) {
function extract(file, target) {
if (!file_isdir(install_dir)) {
if (!mkdir(install_dir)) return false;
}
return system.exec('unzip -uqo ' + file + ' -d ' + target) == 0;
if (!mkdir(install_dir)) return false;
}
const zp = system.platform.search(/^win/i) > -1 ? system.exec_dir : '';
return system.exec(zp + 'unzip -uqo ' + file + ' -d ' + target) == 0;
}
function update_sbbs_ini(root_directory, error_directory) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment