You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: package_tool
+5-5Lines changed: 5 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,7 @@ usage()
9
9
echo" --update: Update the system."
10
10
echo" --usage: This usage message."
11
11
echo" --pip_packages: comma separated list of pip modules to install"
12
-
echo" --python_exec: path to python intrepreter to install pip modules for (default \"python3\"), will require installation of relevant packages to install pip"
12
+
echo" --python_exec: path to python interpreter to install pip modules for (default \"python3\"), will require installation of relevant packages to install pip"
13
13
exit 1
14
14
}
15
15
@@ -138,7 +138,7 @@ opts=$(getopt \
138
138
-- "$@"
139
139
)
140
140
141
-
evalset --$opts
141
+
evalset --"$opts"
142
142
143
143
while [[ $#-gt 0 ]];do
144
144
case"$1"in
@@ -214,15 +214,15 @@ if [[ $install_cmd == "" ]]; then
214
214
fi
215
215
216
216
if [[ $is_installed!="" ]];then
217
-
$install_cmd list installed | grep -q php-cli.x86_64
217
+
$install_cmd list installed | grep -q $is_installed
218
218
exit$?
219
219
fi
220
220
221
221
if [[ $remove_packages!="" ]];then
222
222
pkgs_rm=`echo $remove_packages| sed "s/,/ /g"`
223
-
$install_cmd remove -y $remove_packages
223
+
$install_cmd remove -y $pkg_rm
224
224
if [ $?-ne 0 ];then
225
-
exit_out "Failedto remove $packages" 1
225
+
exit_out "Failed: Was unable to remove some or all of the package(s) $remoove_packages" 1
0 commit comments