mirror of
https://github.com/snipe/snipe-it.git
synced 2026-02-04 14:35:46 +00:00
with --no-interactive, make composer non-interactive aswell
This commit is contained in:
@ -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";
|
||||||
|
|||||||
Reference in New Issue
Block a user