Correct stdout+stderr redirects. - annna - Annna the nice friendly bot.
HTML git clone git://bitreich.org/annna/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/annna/
DIR Log
DIR Files
DIR Refs
DIR Tags
DIR README
---
DIR commit 7fe1b40c24d872d706c4eb52302fc5c91b347406
DIR parent 177c411b6f0e8dcb5743629a186e6799e75d3ff0
HTML Author: eidolon <me@nadezh.da>
Date: Sat, 26 Aug 2023 00:14:16 -0400
Correct stdout+stderr redirects.
Signed-off-by: Annna Robert-Houdin <annna@bitreich.org>
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(-)
---
DIR 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>&1 >/dev/null
+ ffmpeg-effect "${filter}" "${inpath}" "${outpath}" >/dev/null 2>&1
;;
esac
@@ -1285,7 +1285,7 @@ do
inpath="${outpath}";
continue
fi
- pointer "${inpath}" "${outpath}" 2>&1 >/dev/null;
+ pointer "${inpath}" "${outpath}" >/dev/null 2>&1;
inpath="${outpath}";
done | tail -n 1)"
@@ -1314,7 +1314,7 @@ do
inpath="${outpath}";
continue
fi
- revpointer "${inpath}" "${outpath}" 2>&1 >/dev/null;
+ revpointer "${inpath}" "${outpath}" >/dev/null 2>&1;
inpath="${outpath}";
done | tail -n 1)"
DIR 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=$!
DIR 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
DIR 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