From ed6784fed01a1dfecf770f6f3698283811be160b Mon Sep 17 00:00:00 2001 From: romeo-golf Date: Sun, 8 Jan 2017 05:28:58 +0000 Subject: [PATCH] Tidy up work to multi-platform graphing --- bash/portal/graphs.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bash/portal/graphs.sh b/bash/portal/graphs.sh index a91214d..b99dd4a 100755 --- a/bash/portal/graphs.sh +++ b/bash/portal/graphs.sh @@ -88,7 +88,7 @@ fi ## BACKUP AND REPLACE COLLECTD.CONF # Check if the collectd config file exists and if so back it up. -if [[ -f ${COLLECTD_CONFIG} ]] ; then +if [[ -f "${COLLECTD_CONFIG}" ]] ; then echo -e "\e[94m Backing up the current collectd.conf file...\e[97m" sudo cp ${COLLECTD_CONFIG} ${COLLECTD_CONFIG}.bak 2>&1 fi @@ -352,7 +352,7 @@ fi if [[ -f ${COLLECTD_CRON_FILE} ]] ; then echo -e "\e[94m Removing previously installed performance graphs cron file...\e[97m" - sudo rm -f ${COLLECTD_CRON_FILE} 2>&1 + sudo rm -f "${COLLECTD_CRON_FILE}" 2>&1 fi echo -e "\e[94m Adding performance graphs cron file...\e[97m"