checkExist: Redirected output from mkdir to tee
This commit is contained in:
parent
c7c3f5771a
commit
0a1948fed0
@ -160,7 +160,8 @@ function checkExist {
|
||||
elif [ "$2" = "createDir" ]; then
|
||||
echo -e "\e[1;36mCreating: ${3}...\e[0m" | tee -a $logFileVerbose \
|
||||
$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 \
|
||||
$logFileNormal > /dev/null
|
||||
return 1
|
||||
|
0
root/scripts/tee
Normal file
0
root/scripts/tee
Normal file
Loading…
Reference in New Issue
Block a user