From 7bfffb5c80fecffc6e6cde63f532b7511be163ec Mon Sep 17 00:00:00 2001 From: echicken <echicken@bbs.electronicchicken.com> Date: Tue, 24 Jul 2018 22:16:22 -0400 Subject: [PATCH] Accept a git tag as an argument to the script. sbbs317 will download the Synchronet BBS 3.17 compatible release. If absent, the master archive will be fetched. --- mods/webv4-installer.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mods/webv4-installer.js b/mods/webv4-installer.js index fa79a6796e..38f9bf3a1e 100644 --- a/mods/webv4-installer.js +++ b/mods/webv4-installer.js @@ -116,7 +116,8 @@ function remove_dir(dir) { rmdir(dir); } -const zip_url = 'https://codeload.github.com/echicken/synchronet-web-v4/zip/master'; +const url_suffix = argc > 0 ? argv[0] : master; +const zip_url = 'https://codeload.github.com/echicken/synchronet-web-v4/zip/' + url_suffix; const download_target = system.temp_dir + 'webv4.zip'; const extract_dir = fullpath(system.temp_dir); const temp_dir = fullpath(extract_dir + '/synchronet-web-v4-master'); -- GitLab