kickstart.sh should check for git command after git has been installed
Costa Tsaousis (ktsaou) committed
Jun 11, 2017 at 19:33 UTC
10956b00dbf8b7e93e546d31fd355cb7b19fe65c
1 file changed
+3
-1
kickstart.sh
+3
-1
@@ -176,7 +176,6 @@ export PATH="${PATH}:/usr/local/bin:/usr/local/sbin"
176
curl="$(which_cmd curl)"
177
wget="$(which_cmd wget)"
178
bash="$(which_cmd bash)"
179
-git="$(which_cmd git)"
179
180
if [ -z "${BASH_VERSION}" ]
181
then
@@ -299,6 +298,9 @@ fi
298
# ---------------------------------------------------------------------------------------------------------------------
299
# download netdata source
300
301
+# this has to checked after we have installed the required packages
302
+git="$(which_cmd git)"
303
+
304
NETDATA_SOURCE_DIR=
305
if [ ! -z "${git}" -a -x "${git}" ]
306
then