Correct stdout+stderr redirects. - annna - Annna the nice friendly bot. | |
git clone git://bitreich.org/annna/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws6… | |
Log | |
Files | |
Refs | |
Tags | |
README | |
--- | |
commit 7fe1b40c24d872d706c4eb52302fc5c91b347406 | |
parent 177c411b6f0e8dcb5743629a186e6799e75d3ff0 | |
Author: eidolon <[email protected]> | |
Date: Sat, 26 Aug 2023 00:14:16 -0400 | |
Correct stdout+stderr redirects. | |
Signed-off-by: Annna Robert-Houdin <[email protected]> | |
Diffstat: | |
M annna-message-common | 14 +++++++------- | |
M annna-start-main | 2 +- | |
M bithub-cron | 2 +- | |
M cancel-target | 2 +- | |
4 files changed, 10 insertions(+), 10 deletions(-) | |
--- | |
diff --git a/annna-message-common b/annna-message-common | |
@@ -1094,19 +1094,19 @@ case "${text}" in | |
case "${filter}" in | |
antidepressant) | |
- antidepressant "${inpath}" "${outpath}" 2>&1 >/dev/null | |
+ antidepressant "${inpath}" "${outpath}" >/dev/null 2>&1 | |
;; | |
ritual) | |
- satanic-ritual "${inpath}" "${outpath}" 2>&1 >/dev/null | |
+ satanic-ritual "${inpath}" "${outpath}" >/dev/null 2>&1 | |
;; | |
putin) | |
- putin-os "${inpath}" "${outpath}" 2>&1 >/dev/null | |
+ putin-os "${inpath}" "${outpath}" >/dev/null 2>&1 | |
;; | |
tshirt) | |
- tshirt-design "${inpath}" "${outpath}" 2>&1 >/dev/null | |
+ tshirt-design "${inpath}" "${outpath}" >/dev/null 2>&1 | |
;; | |
*) | |
- ffmpeg-effect "${filter}" "${inpath}" "${outpath}" 2>&… | |
+ ffmpeg-effect "${filter}" "${inpath}" "${outpath}" >/d… | |
;; | |
esac | |
@@ -1285,7 +1285,7 @@ do | |
inpath="${outpath}"; | |
continue | |
fi | |
- pointer "${inpath}" "${outpath}" 2>&1 … | |
+ pointer "${inpath}" "${outpath}" >/dev… | |
inpath="${outpath}"; | |
done | tail -n 1)" | |
@@ -1314,7 +1314,7 @@ do | |
inpath="${outpath}"; | |
continue | |
fi | |
- revpointer "${inpath}" "${outpath}" 2>… | |
+ revpointer "${inpath}" "${outpath}" >/… | |
inpath="${outpath}"; | |
done | tail -n 1)" | |
diff --git a/annna-start-main b/annna-start-main | |
@@ -52,7 +52,7 @@ maxnicktries=5 | |
[ $iipid -gt 0 ] && kill -KILL $iipid >/dev/null 2>&1 | |
ii -s "${server}"${ircpassparam}${ircuserparam}${tlsparam} \ | |
- -f "${fullname}" -p ${port} 2>&1 >/dev/null & | |
+ -f "${fullname}" -p ${port} >/dev/null 2>&1 & | |
#ii -s "${server}"${ircpassparam}${ircuserparam}${tlsparam} \ | |
# -f "${fullname}" -p ${port} | |
iipid=$! | |
diff --git a/bithub-cron b/bithub-cron | |
@@ -6,7 +6,7 @@ i=0 | |
maxnew=$(($RANDOM % 5)) | |
while [ $i -lt $maxnew ]; | |
do | |
- bithub-gen 2>&1 >/dev/null | |
+ bithub-gen >/dev/null 2>&1 | |
i=$(($i + 1)) | |
sleep 2; | |
done | |
diff --git a/cancel-target b/cancel-target | |
@@ -7,5 +7,5 @@ then | |
fi | |
cancelitem="$1" | |
-printf "/cancel\t%s\r\n" "${cancelitem}" | nc bitreich.org 70 2>&1 >/dev/null | |
+printf "/cancel\t%s\r\n" "${cancelitem}" | nc bitreich.org 70 >/dev/null 2>&1 | |