cheat
This commit is contained in:
parent
6a1b293a84
commit
ea9ecbd01b
15
mybashrc
15
mybashrc
|
@ -141,13 +141,16 @@ EE_SHOW_LOG() {
|
|||
|
||||
}
|
||||
|
||||
|
||||
CHEAT_CHECK() {
|
||||
if [ ! -x /usr/local/bin/cht.sh ]; then
|
||||
curl https://cht.sh/:cht.sh > /usr/bin/cht.sh || wget -O /usr/bin/cht.sh https://cht.sh/:cht.sh
|
||||
chmod +x /usr/local/bin/cht.sh
|
||||
fi
|
||||
/usr/local/bin/cht.sh
|
||||
{
|
||||
[ -x /usr/local/bin/cht.sh ] && { /usr/local/bin/cht.sh "$@"; }
|
||||
[ -x /usr/bin/cht.sh ] && { /usr/bin/cht.sh "$@"; }
|
||||
} || {
|
||||
curl -s https://cht.sh/:cht.sh >/usr/bin/cht.sh || wget -O /usr/bin/cht.sh https://cht.sh/:cht.sh
|
||||
chmod +x /usr/local/bin/cht.sh
|
||||
/usr/local/bin/cht.sh "$@"
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
EE_SHOW_FPM() {
|
||||
|
|
Loading…
Reference in New Issue