]> arthur.barton.de Git - netdata.git/commitdiff
message about system wide installation should only appear when local installation...
authorCosta Tsaousis <costa@tsaousis.gr>
Sun, 3 Jul 2016 14:21:38 +0000 (17:21 +0300)
committerCosta Tsaousis <costa@tsaousis.gr>
Sun, 3 Jul 2016 14:21:38 +0000 (17:21 +0300)
python.d/python-modules-installer.sh.in

index 0f2ccb2612f297753d905d6c3e649f5d92e39dc7..620a332b10d6026ba9bf9fc2be58b8a134c2734c 100755 (executable)
@@ -143,11 +143,14 @@ echo >&2
 if [ ${errors} -ne 0 ]
 then
     echo >&2 "Failed to install ${errors} modules: ${failed}"
-    echo >&2
-    echo >&2 "If you are getting errors during cleanup from pip, there is a known bug"
-    echo >&2 "in certain versions of pip that prevents installing packages local to an"
-    echo >&2 "application. To install them system-wide please run:"
-    echo >&2 "$0 --system"
+    if [ ! -z "${target}" ]
+    then
+               echo >&2
+               echo >&2 "If you are getting errors during cleanup from pip, there is a known bug"
+               echo >&2 "in certain versions of pip that prevents installing packages local to an"
+               echo >&2 "application. To install them system-wide please run:"
+               echo >&2 "$0 --system"
+       fi
     exit 1
 else
     echo >&2 "All done. We have: ${installed}"