From 177ea845ea828baf9d3ca91a1c64a8d61450eb1c Mon Sep 17 00:00:00 2001
From: Erik Alexandre Pucci <eap08@c3sl.ufpr.br>
Date: Tue, 27 Apr 2010 16:32:10 -0300
Subject: [PATCH] run-config.sh: Corrected output redirection in if and else
 tests

Signed-off-by: Erik Alexandre Pucci <eap08@c3sl.ufpr.br>
Acked-by: Diego Giovane Pasqualin <dgp06@c3sl.ufpr.br>
Acked-by: Ricardo Tavares de Oliveira <rto07@c3sl.ufpr.br>
Acked-by: Vinicius Ruoso <vkr07@c3sl.ufpr.br>
Signed-off-by: Danilo K. S. Yorinori <danilok@c3sl.ufpr.br>
---
 run-config.sh | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/run-config.sh b/run-config.sh
index 2cf0002..17819f9 100755
--- a/run-config.sh
+++ b/run-config.sh
@@ -64,7 +64,8 @@ date +"%F %T" >> ${dirname}/run.log
 
 # Execution
 if test $# -gt 1; then
-    echo "Run.sh call: wrong number of parameters ($#)." >> run.log
+    echo "Run.sh call: wrong number of parameters ($#)." \
+         >> ${dirname}/run.log
 elif test $# -eq 0; then
     ${bindir}/client "${url}" "${inep}" "${mac}" "${phost}" "${pport}" \
                      "${puid}" "${ppasswd}" >> ${dirname}/run.log 2>&1
@@ -81,6 +82,6 @@ elif [[ $1 == "--inventory" ]]; then
     ${bindir}/client "$1" "${url}" "${inep}" "${mac}" "${phost}" "${pport}" \
                           "${puid}" "${ppasswd}" >> ${dirname}/run.log 2>&1
 else
-    echo "Run.sh call: wrong parameter (\"$1\")." >> run.log
+    echo "Run.sh call: wrong parameter (\"$1\")." >> ${dirname}/run.log
 fi
 EOF
-- 
GitLab