message about system wide installation should only appear when local installation is requested
Costa Tsaousis committed
Jul 3, 2016 at 17:21 UTC
63c95191f37d962cddc5b3aece84f7bb69266288
1 file changed
+8
-5
python.d/python-modules-installer.sh.in
+8
-5
@@ -143,11 +143,14 @@ echo >&2
143
if [ ${errors} -ne 0 ]
144
then
145
echo >&2 "Failed to install ${errors} modules: ${failed}"
146
- echo >&2
147
- echo >&2 "If you are getting errors during cleanup from pip, there is a known bug"
148
- echo >&2 "in certain versions of pip that prevents installing packages local to an"
149
- echo >&2 "application. To install them system-wide please run:"
150
- echo >&2 "$0 --system"
146
+ if [ ! -z "${target}" ]
147
+ then
148
+ echo >&2
149
+ echo >&2 "If you are getting errors during cleanup from pip, there is a known bug"
150
+ echo >&2 "in certain versions of pip that prevents installing packages local to an"
151
+ echo >&2 "application. To install them system-wide please run:"
152
+ echo >&2 "$0 --system"
153
+ fi
154
exit 1
155
else
156
echo >&2 "All done. We have: ${installed}"