mirror of
https://github.com/mtan93/Installomator.git
synced 2026-03-08 05:31:53 +00:00
Correcting logging
This commit is contained in:
@@ -134,9 +134,7 @@ checkCmdOutput () {
|
|||||||
exitStatus="$( echo "${cmdOutput}" | grep --binary-files=text -i "exit" | tail -1 | sed -E 's/.*exit code ([0-9]).*/\1/g' || true )"
|
exitStatus="$( echo "${cmdOutput}" | grep --binary-files=text -i "exit" | tail -1 | sed -E 's/.*exit code ([0-9]).*/\1/g' || true )"
|
||||||
if [[ ${exitStatus} -eq 0 ]] ; then
|
if [[ ${exitStatus} -eq 0 ]] ; then
|
||||||
echo "${item} succesfully installed."
|
echo "${item} succesfully installed."
|
||||||
selectedOutput="$( echo "${cmdOutput}" | grep --binary-files=text -i ": warn" || true )"
|
selectedOutput="$( echo "${cmdOutput}" | grep --binary-files=text -E ": (REQ|ERROR|WARN)" || true )"
|
||||||
echo "$selectedOutput"
|
|
||||||
selectedOutput="$( echo "${cmdOutput}" | grep --binary-files=text -i ": req" || true )"
|
|
||||||
echo "$selectedOutput"
|
echo "$selectedOutput"
|
||||||
else
|
else
|
||||||
echo "ERROR installing ${item}. Exit code ${exitStatus}"
|
echo "ERROR installing ${item}. Exit code ${exitStatus}"
|
||||||
|
|||||||
@@ -81,9 +81,7 @@ checkCmdOutput () {
|
|||||||
exitStatus="$( echo "${cmdOutput}" | grep --binary-files=text -i "exit" | tail -1 | sed -E 's/.*exit code ([0-9]).*/\1/g' || true )"
|
exitStatus="$( echo "${cmdOutput}" | grep --binary-files=text -i "exit" | tail -1 | sed -E 's/.*exit code ([0-9]).*/\1/g' || true )"
|
||||||
if [[ ${exitStatus} -eq 0 ]] ; then
|
if [[ ${exitStatus} -eq 0 ]] ; then
|
||||||
echo "${item} succesfully installed."
|
echo "${item} succesfully installed."
|
||||||
selectedOutput="$( echo "${cmdOutput}" | grep --binary-files=text -i ": warn" || true )"
|
selectedOutput="$( echo "${cmdOutput}" | grep --binary-files=text -E ": (REQ|ERROR|WARN)" || true )"
|
||||||
echo "$selectedOutput"
|
|
||||||
selectedOutput="$( echo "${cmdOutput}" | grep --binary-files=text -i ": req" || true )"
|
|
||||||
echo "$selectedOutput"
|
echo "$selectedOutput"
|
||||||
else
|
else
|
||||||
echo "ERROR installing ${item}. Exit code ${exitStatus}"
|
echo "ERROR installing ${item}. Exit code ${exitStatus}"
|
||||||
|
|||||||
@@ -72,9 +72,7 @@ checkCmdOutput () {
|
|||||||
exitStatus="$( echo "${cmdOutput}" | grep --binary-files=text -i "exit" | tail -1 | sed -E 's/.*exit code ([0-9]).*/\1/g' || true )"
|
exitStatus="$( echo "${cmdOutput}" | grep --binary-files=text -i "exit" | tail -1 | sed -E 's/.*exit code ([0-9]).*/\1/g' || true )"
|
||||||
if [[ ${exitStatus} -eq 0 ]] ; then
|
if [[ ${exitStatus} -eq 0 ]] ; then
|
||||||
echo "${item} succesfully installed."
|
echo "${item} succesfully installed."
|
||||||
selectedOutput="$( echo "${cmdOutput}" | grep --binary-files=text -i ": warn" || true )"
|
selectedOutput="$( echo "${cmdOutput}" | grep --binary-files=text -E ": (REQ|ERROR|WARN)" || true )"
|
||||||
echo "$selectedOutput"
|
|
||||||
selectedOutput="$( echo "${cmdOutput}" | grep --binary-files=text -i ": req" || true )"
|
|
||||||
echo "$selectedOutput"
|
echo "$selectedOutput"
|
||||||
else
|
else
|
||||||
echo "ERROR installing ${item}. Exit code ${exitStatus}"
|
echo "ERROR installing ${item}. Exit code ${exitStatus}"
|
||||||
|
|||||||
@@ -72,9 +72,7 @@ checkCmdOutput () {
|
|||||||
exitStatus="$( echo "${cmdOutput}" | grep --binary-files=text -i "exit" | tail -1 | sed -E 's/.*exit code ([0-9]).*/\1/g' || true )"
|
exitStatus="$( echo "${cmdOutput}" | grep --binary-files=text -i "exit" | tail -1 | sed -E 's/.*exit code ([0-9]).*/\1/g' || true )"
|
||||||
if [[ ${exitStatus} -eq 0 ]] ; then
|
if [[ ${exitStatus} -eq 0 ]] ; then
|
||||||
echo "${item} succesfully installed."
|
echo "${item} succesfully installed."
|
||||||
selectedOutput="$( echo "${cmdOutput}" | grep --binary-files=text -i ": warn" || true )"
|
selectedOutput="$( echo "${cmdOutput}" | grep --binary-files=text -E ": (REQ|ERROR|WARN)" || true )"
|
||||||
echo "$selectedOutput"
|
|
||||||
selectedOutput="$( echo "${cmdOutput}" | grep --binary-files=text -i ": req" || true )"
|
|
||||||
echo "$selectedOutput"
|
echo "$selectedOutput"
|
||||||
else
|
else
|
||||||
echo "ERROR installing ${item}. Exit code ${exitStatus}"
|
echo "ERROR installing ${item}. Exit code ${exitStatus}"
|
||||||
|
|||||||
@@ -69,9 +69,7 @@ checkCmdOutput () {
|
|||||||
exitStatus="$( echo "${cmdOutput}" | grep --binary-files=text -i "exit" | tail -1 | sed -E 's/.*exit code ([0-9]).*/\1/g' || true )"
|
exitStatus="$( echo "${cmdOutput}" | grep --binary-files=text -i "exit" | tail -1 | sed -E 's/.*exit code ([0-9]).*/\1/g' || true )"
|
||||||
if [[ ${exitStatus} -eq 0 ]] ; then
|
if [[ ${exitStatus} -eq 0 ]] ; then
|
||||||
echo "${item} succesfully installed."
|
echo "${item} succesfully installed."
|
||||||
selectedOutput="$( echo "${cmdOutput}" | grep --binary-files=text -i ": warn" || true )"
|
selectedOutput="$( echo "${cmdOutput}" | grep --binary-files=text -E ": (REQ|ERROR|WARN)" || true )"
|
||||||
echo "$selectedOutput"
|
|
||||||
selectedOutput="$( echo "${cmdOutput}" | grep --binary-files=text -i ": req" || true )"
|
|
||||||
echo "$selectedOutput"
|
echo "$selectedOutput"
|
||||||
else
|
else
|
||||||
echo "ERROR installing ${item}. Exit code ${exitStatus}"
|
echo "ERROR installing ${item}. Exit code ${exitStatus}"
|
||||||
|
|||||||
@@ -72,9 +72,7 @@ checkCmdOutput () {
|
|||||||
exitStatus="$( echo "${cmdOutput}" | grep --binary-files=text -i "exit" | tail -1 | sed -E 's/.*exit code ([0-9]).*/\1/g' || true )"
|
exitStatus="$( echo "${cmdOutput}" | grep --binary-files=text -i "exit" | tail -1 | sed -E 's/.*exit code ([0-9]).*/\1/g' || true )"
|
||||||
if [[ ${exitStatus} -eq 0 ]] ; then
|
if [[ ${exitStatus} -eq 0 ]] ; then
|
||||||
echo "${item} succesfully installed."
|
echo "${item} succesfully installed."
|
||||||
selectedOutput="$( echo "${cmdOutput}" | grep --binary-files=text -i ": warn" || true )"
|
selectedOutput="$( echo "${cmdOutput}" | grep --binary-files=text -E ": (REQ|ERROR|WARN)" || true )"
|
||||||
echo "$selectedOutput"
|
|
||||||
selectedOutput="$( echo "${cmdOutput}" | grep --binary-files=text -i ": req" || true )"
|
|
||||||
echo "$selectedOutput"
|
echo "$selectedOutput"
|
||||||
else
|
else
|
||||||
echo "ERROR installing ${item}. Exit code ${exitStatus}"
|
echo "ERROR installing ${item}. Exit code ${exitStatus}"
|
||||||
|
|||||||
Reference in New Issue
Block a user