[Build][Bug]: fix the warning message not printed as expected issue (#10278)

Fix the warning message not printed as expected issue
This commit is contained in:
xumia 2022-03-19 21:48:27 +08:00
parent 92f97bddb9
commit b93080d246
2 changed files with 6 additions and 2 deletions

View File

@ -10,10 +10,10 @@ if [ -z "$REAL_COMMAND" ]; then
exit 1
fi
INSTALL=$(check_apt_install)
INSTALL=$(check_apt_install "$@")
COMMAND_INFO="Locked by command: $REAL_COMMAND $@"
if [ "$INSTALL" == y ]; then
check_apt_version
check_apt_version "$@"
lock_result=$(acquire_apt_installation_lock "$COMMAND_INFO" )
$REAL_COMMAND "$@"
command_result=$?

View File

@ -207,6 +207,10 @@ check_apt_version()
continue
fi
if [ "$para" == "install" ]; then
continue
fi
if [[ "$para" == *=* ]]; then
continue
else