Correct the wrong variable again

pull/1/head
Dct Mei 2020-03-24 02:08:35 +08:00
parent 2167d99c2e
commit b6de829103
No known key found for this signature in database
GPG Key ID: 50BF8B712DCAD7EA
1 changed files with 2 additions and 2 deletions

View File

@ -152,8 +152,8 @@ installSoftware() {
PACKAGE_MANAGEMENT_INSTALL='zypper install'
;;
esac
"$PACKAGE_MANAGEMENT_UPDATE"
"$PACKAGE_MANAGEMENT_INSTALL" "$COMPONENT--"
${PACKAGE_MANAGEMENT_UPDATE}
${PACKAGE_MANAGEMENT_INSTALL} "$COMPONENT--"
if [[ "$?" -ne '0' ]]; then
echo "error: Installation of $COMPONENT failed, please check your network."
exit 1