@cryptotaxi247 / netdata-1 / commits / 7b8c38635

Fix a syntax error in the packaging functions. (#7686)

Plain `[]` does not support pattern matching, only `[[]]`.

Austin S. Hemmelgarn committed Jan 8, 2020 at 05:51 UTC 7b8c3863557576e7433d381fd05c95136a26e1fc
1 file changed +1 -1
packaging/installer/functions.sh
+1 -1
@@ -303,7 +303,7 @@ install_non_systemd_init() {
303 run rc-update add netdata default &&
304 return 0
305
306 - elif [ "${key}" =~ ^devuan* ] || [ "${key}" = "debian-7" ] || [ "${key}" = "ubuntu-12.04" ] || [ "${key}" = "ubuntu-14.04" ]; then
306 + elif [[ "${key}" =~ ^devuan* ]] || [ "${key}" = "debian-7" ] || [ "${key}" = "ubuntu-12.04" ] || [ "${key}" = "ubuntu-14.04" ]; then
307 echo >&2 "Installing LSB init file..."
308 run cp system/netdata-lsb /etc/init.d/netdata &&
309 run chmod 755 /etc/init.d/netdata &&