This commit is contained in:
Marcus 2024-01-07 00:11:30 +01:00
parent b9b3df0796
commit 8d160331ba

View file

@ -382,14 +382,14 @@ flootworker()
else else
echo "${LOL[$1]}" echo "${LOL[$1]}"
fi fi
done > /dev/tcp/$IPFLOOT/$FLOOTPORT || message warn "[worker ${YELLOW}$iFLOOTWORKER${ENDCOLOR}] transmission ${RED}failed${ENDCOLOR} - maybe you need to decrease ${YELLOW}FLOOTFORKS${ENDCOLOR} or expand/tune your uplink" done > /dev/tcp/$IPFLOOT/$FLOOTPORT || message warn "[worker ${YELLOW}${iFLOOTWORKER}${ENDCOLOR}] transmission ${RED}failed${ENDCOLOR} - maybe you need to decrease ${YELLOW}FLOOTFORKS${ENDCOLOR} or expand/tune your uplink"
} }
checkfile() { checkfile() {
if [ ! -f $1 ] || [ -z $1 ] if [ ! -f $1 ] || [ -z $1 ] || [ -d $1 ]
then then
message error "file ${YELLOW}$1${ENDCOLOR} does not exist." message error "file ${YELLOW}$1${ENDCOLOR} is not a valid file or does not exist."
exit 1 exit 1
fi fi