3
0
mirror of https://github.com/snipe/snipe-it.git synced 2026-02-04 13:05:32 +00:00

with --no-interactive, make composer non-interactive aswell

This commit is contained in:
William Kirstaedter
2025-09-29 11:39:23 +02:00
parent be4362c59a
commit 8af3cf4056

View File

@ -62,6 +62,7 @@ if ($argc > 1){
break; break;
case '--no-interactive': case '--no-interactive':
$no_interactive = true; $no_interactive = true;
putenv("COMPOSER_NO_INTERACTION=1"); //put composer in non-interactive mode aswell
break; break;
default: // for legacy support from before we started using --branch default: // for legacy support from before we started using --branch
$branch = $argv[$arg]; $branch = $argv[$arg];
@ -443,7 +444,8 @@ if ((strpos('git version', $git_version)) === false) {
echo $git_fetch; echo $git_fetch;
echo '-- '.$git_stash; echo '-- '.$git_stash;
echo '-- '.$git_checkout; echo '-- '.$git_checkout;
echo '-- '.$git_pull."\n"; echo '-- '.$git_pull;
echo "\n";
} else { } else {
echo "Git is NOT installed. You can still use this upgrade script to run common \n"; echo "Git is NOT installed. You can still use this upgrade script to run common \n";
echo "migration commands, but you will have to manually download the updated files. \n\n"; echo "migration commands, but you will have to manually download the updated files. \n\n";