tested in live code, merged to framework
This commit is contained in:
@@ -4,6 +4,7 @@ function print_info()
|
|||||||
NC='\033[0m'
|
NC='\033[0m'
|
||||||
tput bold
|
tput bold
|
||||||
echo -e "$GREEN $1${NC}"
|
echo -e "$GREEN $1${NC}"
|
||||||
|
echo -e "$GREEN $1${NC}" >> "$LOGFILENAME"
|
||||||
tput sgr0
|
tput sgr0
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -13,6 +14,7 @@ function print_error()
|
|||||||
NC='\033[0m'
|
NC='\033[0m'
|
||||||
tput bold
|
tput bold
|
||||||
echo -e "$RED $1${NC}"
|
echo -e "$RED $1${NC}"
|
||||||
|
echo -e "$RED $1${NC}" >> "$LOGFILENAME"
|
||||||
echo "$1"
|
echo "$1"
|
||||||
tput sgr0
|
tput sgr0
|
||||||
}
|
}
|
@@ -59,6 +59,8 @@ if [ PreflightCheck = 1 ]; then
|
|||||||
PreflightCheck
|
PreflightCheck
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
echo > $LOGFILENAME
|
||||||
|
|
||||||
#Your custom logic here....
|
#Your custom logic here....
|
||||||
echo "Custom logic here..."
|
echo "Custom logic here..."
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user