xxx
This commit is contained in:
parent
e6454e1d0b
commit
a6cf979c8a
6
maple
6
maple
|
@ -55,7 +55,7 @@
|
|||
#####################################################################################################################
|
||||
|
||||
i=`cat maple|grep -n MARKER|cut -f1 -d":"`;i=$(echo $i|xargs|cut -f2 -d" ");ii=`wc -l maple|cut -f1 -d" "`;
|
||||
iii=$((ii-i));tail -n $iii $0>mpl;MD5=$(md5sum mpl|cut -f1 -d ' ');rm mpl;DM5="370ae1b11d38d1793a82ec92ba303a3e";
|
||||
iii=$((ii-i));tail -n $iii $0>mpl;MD5=$(md5sum mpl|cut -f1 -d ' ');rm mpl;DM5="920082ebd603f177cbf372f426bfe4f7";
|
||||
[ "$MD5" = "$DM5" ] || exit;
|
||||
|
||||
# MARKER ############################################################################################################
|
||||
|
@ -932,10 +932,6 @@ cmd_setup_bot () {
|
|||
mkdir plugins
|
||||
cat storage/bot/variants/dupe/bot_maple__services__initial_plugins.txt|grep -v "#"|grep -v irc3|sed s/plugins.//|xargs -I{} cp storage/bot/plugins/{}.py plugins/
|
||||
|
||||
|
||||
echo -e "1 DISCORD__SERVICING $DISCORD__SERVICING"; read
|
||||
|
||||
|
||||
# ideally i would simply use sed -i s/this/that/g file; however osx/unix and gnused are not exactly posix compliant(idc) specifically with (inplace) file updating, ppl getting gsed on osx vs using ased, ill skip past.
|
||||
if [ $DISCORD__SERVICING -eq 0 ]; then
|
||||
cat plugins/tool_bus_plugin.py|sed s/"???DISCORD???"/"SERVICES_DISCORD=False"/g > plugins/tool_bus_plugin.tmp;mv plugins/tool_bus_plugin.tmp plugins/tool_bus_plugin.py
|
||||
|
|
Loading…
Reference in New Issue