checkExist: Redirected output from mkdir to tee

This commit is contained in:
Asif Bacchus 2018-09-06 01:56:28 -06:00
parent c7c3f5771a
commit 0a1948fed0
2 changed files with 2 additions and 1 deletions

View File

@ -160,7 +160,8 @@ function checkExist {
elif [ "$2" = "createDir" ]; then elif [ "$2" = "createDir" ]; then
echo -e "\e[1;36mCreating: ${3}...\e[0m" | tee -a $logFileVerbose \ echo -e "\e[1;36mCreating: ${3}...\e[0m" | tee -a $logFileVerbose \
$logFileNormal > /dev/null $logFileNormal > /dev/null
mkdir -p "$3" | tee -a $logFileVerbose $logFileNormal > /dev/null mkdir -p "$3" 2>&1 | tee -a $logFileVerbose $logFileNormal \
> /dev/null
echo -e "\e[0;36m...done\e[0m" | tee -a $logFileVerbose \ echo -e "\e[0;36m...done\e[0m" | tee -a $logFileVerbose \
$logFileNormal > /dev/null $logFileNormal > /dev/null
return 1 return 1

0
root/scripts/tee Normal file
View File