From 9c54ec9aeb2a74932f3d13563f441af668b59f46 Mon Sep 17 00:00:00 2001
From: Bob Igo <bob@stormlogic.com>
Date: Sat, 6 Jun 2009 12:50:02 -0400
Subject: Surrounded all variables in quotes for safe bash comparisons.

---
 abs/core-testing/fbsplash/fbsplash.inithooks | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/abs/core-testing/fbsplash/fbsplash.inithooks b/abs/core-testing/fbsplash/fbsplash.inithooks
index 0e8c60c..c396b92 100644
--- a/abs/core-testing/fbsplash/fbsplash.inithooks
+++ b/abs/core-testing/fbsplash/fbsplash.inithooks
@@ -28,14 +28,14 @@ stat_busy() {
         # Load variables #
         var_load STEP_NR MAX_STEPS RC_MULTI RC_SYSINIT RC_SHUTDOWN
         # Only update the splash progress if we're in sysinit, multi, or shutdown. #
-        if [[ ${SPLASH_RC_MULTI}  == 1 || ${SPLASH_RC_SYSINIT} == 1 || ${SPLASH_RC_SHUTDOWN} == 1 ]]; then
+        if [[ "${SPLASH_RC_MULTI}" == "1" || "${SPLASH_RC_SYSINIT}" == "1" || "${SPLASH_RC_SHUTDOWN}" == "1" ]]; then
                 ((SPLASH_STEP_NR++))
                 SPLASH_PROGRESS=$((100*${SPLASH_STEP_NR}/${SPLASH_MAX_STEPS}))
                 SPLASH_CURRENT_PROGRESS=${SPLASH_PROGRESS}
                 splash_update_progress ${SPLASH_PROGRESS}
                 var_save STEP_NR CURRENT_PROGRESS
         fi
-	if [ ${SPLASH_RC_SHUTDOWN} == 1 ]; then
+	if [ "${SPLASH_RC_SHUTDOWN}" == "1" ]; then
 		save_shutdown_steps
 	fi
 
@@ -57,7 +57,7 @@ start_daemon() {
 }
 
 # rc.sysinit #
-if [ $CALLER == '/etc/rc.sysinit' ]; then
+if [ "$CALLER" == '/etc/rc.sysinit' ]; then
 #	echo "fbsplash: Setting up splash..."
 	splash_cache_prep
 	SPLASH_MAX_STEPS=$(load_boot_steps)
@@ -69,14 +69,14 @@ if [ $CALLER == '/etc/rc.sysinit' ]; then
 fi
 
 # rc.multi #
-if [ $CALLER == '/etc/rc.multi' ]; then
+if [ "$CALLER" == '/etc/rc.multi' ]; then
 	SPLASH_RC_MULTI=1
 	SPLASH_RC_SYSINIT=0
 	var_save RC_MULTI RC_SYSINIT
 fi
 
 # rc.shutdown #
-if [ $CALLER == '/etc/rc.shutdown' ]; then
+if [ "$CALLER" == '/etc/rc.shutdown' ]; then
 #	echo "fbsplash: Setting up splash..."
 	splash_cache_prep
 	SPLASH_MAX_STEPS=$(load_shutdown_steps)
-- 
cgit v0.12