@cryptotaxi247 / netdata-1 / commits / 0f9a0612f

fix(kickstart): fix incorrect find command patterns (#21399)

Ilya Mashchenko committed Dec 4, 2025 at 20:12 UTC 0f9a0612f0fdf9588216f0ac855f376f6191b881
1 file changed +4 -2
packaging/installer/kickstart.sh
+4 -2
@@ -2118,7 +2118,9 @@ try_build_install() {
2118 fi
2119
2120 if [ "${DRY_RUN}" -ne 1 ]; then
2121 - cd "$(find "${tmpdir}" -mindepth 1 -maxdepth 1 -type d -name netdata-)" || fatal "Cannot change directory to netdata source tree" F0006
2121 + netdata_src_dir="$(find "${tmpdir}" -mindepth 1 -maxdepth 1 -type d -name 'netdata-*' | head -n 1)"
2122 + [ -z "${netdata_src_dir}" ] && fatal "Cannot find netdata source directory in ${tmpdir}" F0006
2123 + cd "${netdata_src_dir}" || fatal "Cannot change directory to netdata source tree" F0006
2124 fi
2125
2126 if [ -x netdata-installer.sh ] || [ "${DRY_RUN}" -eq 1 ]; then
@@ -2179,7 +2181,7 @@ prepare_offline_install_source() {
2181 fi
2182 fi
2183
2182 - if ! find . -name '*.gz.run'; then
2184 + if [ -z "$(find . -name '*.gz.run')" ]; then
2185 fatal "Did not actually download any static installer archives, cannot continue. ${BADNET_MSG}." F0516
2186 fi
2187