]> arthur.barton.de Git - netdata.git/blobdiff - python.d/python-modules-installer.sh.in
added missing files for automake
[netdata.git] / python.d / python-modules-installer.sh.in
index 0f2ccb2612f297753d905d6c3e649f5d92e39dc7..18f14f12c0d0c06634376b7158806c1774ecd4eb 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 
 umask 022
 
@@ -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}"