Fix bug when not using monitor
authorAndy Bavier <acb@cs.princeton.edu>
Tue, 11 Jan 2011 20:11:18 +0000 (15:11 -0500)
committerAndy Bavier <acb@cs.princeton.edu>
Tue, 11 Jan 2011 20:11:18 +0000 (15:11 -0500)
build.sh

index a00e363..2299dca 100755 (executable)
--- a/build.sh
+++ b/build.sh
@@ -52,8 +52,8 @@ fi
 sed -i -e "s@^MONITOR_SERVER.*@MONITOR_SERVER=$MONITOR_SERVER@" source/configuration
 
 install -D -m 644 $PLC_BOOT_CA_SSL_CRT source/cacert/$PLC_BOOT_HOST/cacert.pem
-if [ -f $PLC_MONITOR_CA_SSL_CRT ] ; then 
-       install -D -m 644 $PLC_MONITOR_CA_SSL_CRT source/cacert/$PLC_MONITOR_HOST/cacert.pem
+if [ -f "$PLC_MONITOR_CA_SSL_CRT" ] ; then 
+       install -D -m 644 "$PLC_MONITOR_CA_SSL_CRT" source/cacert/$PLC_MONITOR_HOST/cacert.pem
 fi
 
 # Replace the default debug SSH key