|
|
|
@ -100,6 +100,7 @@ if (strtolower($input) == 'y') {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// check if js-deps are up-to-date
|
|
|
|
|
if (file_exists("$target_dir/jsdeps.json") && file_exists("$target_dir/bin/install-jsdeps.sh")) {
|
|
|
|
|
$jsdeps = json_decode(file_get_contents("$target_dir/jsdeps.json"));
|
|
|
|
|
$package = $jsdeps->dependencies[0];
|
|
|
|
|
$dest_file = $target_dir . '/' . $package->dest;
|
|
|
|
@ -108,6 +109,10 @@ if (strtolower($input) == 'y') {
|
|
|
|
|
system("cd $target_dir && bin/install-jsdeps.sh");
|
|
|
|
|
echo "done.\n\n";
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
else {
|
|
|
|
|
echo "JavaScript dependencies installation skipped...\n";
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
echo "Running update script at target...\n";
|
|
|
|
|
system("cd $target_dir && php bin/update.sh --version=$oldversion");
|
|
|
|
|