work-around macos find adding double slashes if the directory ends with a slash
Costa Tsaousis (ktsaou) committed
Jan 3, 2018 at 07:53 UTC
1865a223adf1f387db02c9eb3ed23a98377e8d3c
1 file changed
+1
-1
netdata-installer.sh
+1
-1
@@ -557,7 +557,7 @@ config_signature_matches() {
557
558
# backup user configurations
559
installer_backup_suffix="${PID}.${RANDOM}"
560
-for x in $(find -L "${NETDATA_PREFIX}/etc/netdata/" -name '*.conf' -type f)
560
+for x in $(find -L "${NETDATA_PREFIX}/etc/netdata" -name '*.conf' -type f)
561
do
562
if [ -f "${x}" ]
563
then