update version: output tweaks

This commit is contained in:
David Anderson 2023-12-14 23:25:41 -08:00
parent 6951d1c1d7
commit 4cff2f40ab
1 changed files with 8 additions and 3 deletions

View File

@ -181,10 +181,14 @@ function stage_file($a, $v, $p, $fd) {
} else { } else {
$subdirs = dirname($name); $subdirs = dirname($name);
if ($subdirs) { if ($subdirs) {
echo 'mkdir -p '.$download_dir.'/'.$subdirs.PHP_EOL; if ($verbose) {
echo 'mkdir -p '.$download_dir.'/'.$subdirs.PHP_EOL;
}
system('mkdir -p '.$download_dir.'/'.$subdirs); system('mkdir -p '.$download_dir.'/'.$subdirs);
} }
echo("cp $path $dl_path\n"); if ($verbose) {
echo("cp $path $dl_path\n");
}
system("cp $path $dl_path"); system("cp $path $dl_path");
} }
@ -232,7 +236,7 @@ function confirm_sig_gen($name) {
IF YOUR PROJECT IS PUBLICLY ACCESSIBLE, THIS IS A SECURITY VULNERABILITY. IF YOUR PROJECT IS PUBLICLY ACCESSIBLE, THIS IS A SECURITY VULNERABILITY.
PLEASE STOP YOUR PROJECT IMMEDIATELY AND READ: PLEASE STOP YOUR PROJECT IMMEDIATELY AND READ:
https://boinc.berkeley.edu/trac/wiki/CodeSigning https://github.com/BOINC/boinc/wiki/CodeSigning
Continue (y/n)? "; Continue (y/n)? ";
@ -495,6 +499,7 @@ function process_version($a, $v, $p) {
} }
if ($confirm) { if ($confirm) {
echo "Found new app version for: $a $v $p\n";
if (!confirm_update($fds, $vers)) { if (!confirm_update($fds, $vers)) {
return; return;
} }