Skip to content
Snippets Groups Projects
Commit 15522c56 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 0c2ba261
No related branches found
No related tags found
No related merge requests found
...@@ -25,9 +25,10 @@ function download(url, target) { ...@@ -25,9 +25,10 @@ function download(url, target) {
function extract(file, target) { function extract(file, target) {
if (!file_isdir(install_dir)) { if (!file_isdir(install_dir)) {
if (!mkdir(install_dir)) return false; if (!mkdir(install_dir)) return false;
} }
return system.exec('unzip -uqo ' + file + ' -d ' + target) == 0; 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) { 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