From b9349a5e51a616b76ae944c0182eb178b54f8dac Mon Sep 17 00:00:00 2001 From: Matt Riedemann Date: Mon, 9 Jun 2014 13:43:23 -0700 Subject: [PATCH] Fix collection of *.failure files The path to the *.failure files was wrong so the logs were never collected, which makes debugging grenade service start failures a bit difficult. Change-Id: Ia7c24bac23b2a5db86bdf3410668355f774ad770 --- functions.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions.sh b/functions.sh index 700b7ccb..c4c3fde1 100644 --- a/functions.sh +++ b/functions.sh @@ -493,7 +493,7 @@ function cleanup_host { sudo rm $BASE/logs/grenade.sh.log.* # Copy failure files if they exist - if [ $(ls $BASE/stack/status/*.failure | wc -l) -gt 0 ]; then + if [ $(ls $BASE/status/stack/*.failure | wc -l) -gt 0 ]; then sudo mkdir -p $BASE/logs/status sudo cp $BASE/status/stack/*.failure $BASE/logs/status/ fi