Skip to content

Commit

Permalink
fix update
Browse files Browse the repository at this point in the history
  • Loading branch information
mvorisek committed Jan 2, 2024
1 parent 52c74cd commit 1a76637
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions bin/installto.sh
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,9 @@ if (strtolower($input) == 'y') {
}
}

foreach (['index.php', 'config/defaults.inc.php', 'composer.json', 'jsdeps.json', 'CHANGELOG.md', 'README.md', 'UPGRADING', 'LICENSE', 'INSTALL'] as $file) {
$command = 'rsync -a --out-format=%n ' . INSTALL_PATH . "$file $target_dir/$file";
foreach (['index.php', 'config/defaults.inc.php', 'composer.json.dist', 'jsdeps.json', 'CHANGELOG.md', 'README.md', 'UPGRADING', 'LICENSE', 'INSTALL'] as $file) {
$source_file = $file === 'composer.json.dist' ? 'composer.json' : $file;
$command = 'rsync -a --out-format=%n ' . INSTALL_PATH . "$source_file $target_dir/$file";

if (file_exists(INSTALL_PATH . $file) && (system($command, $ret) === false || $ret > 0)) {
rcube::raise_error("Failed to execute command: $command", false, true);
Expand Down

0 comments on commit 1a76637

Please sign in to comment.