#!/usr/bin/env bashexportPATH="${PATH}:/sbin:/usr/sbin:/usr/local/bin:/usr/local/sbin"
uniquepath(){localpath=""whilereaddoif[[!"${path}"=~(^|:)"${REPLY}"(:|$)]]then[!-z"${path}"]&&path="${path}:"path="${path}${REPLY}"fidone<<(echo"${PATH}"|tr":""\n")[!-z"${path}"]&&[["${PATH}"=~/bin]]&&[["${PATH}"=~/sbin]]&&exportPATH="${path}"}
uniquepath
netdata_source_dir="$(pwd)"installer_dir="$(dirname"${0}")"if["${netdata_source_dir}"!="${installer_dir}"-a"${installer_dir}"!="."]thenecho>&2"Warning: you are curre