mirror of
https://github.com/hackerschoice/segfault.git
synced 2024-06-28 09:41:18 +00:00
clean2
This commit is contained in:
parent
459d81ac5d
commit
e18c9e0026
0
contrib/cronjob
Normal file → Executable file
0
contrib/cronjob
Normal file → Executable file
@ -16,11 +16,8 @@ unset _IS_SHOW_MOTD
|
||||
unset SF_IS_NEW_SERVER
|
||||
unset SF_IS_LOGINSHELL
|
||||
|
||||
[[ -n $BASH ]] && {
|
||||
# user on zsh and did `bash -il`
|
||||
export SHELL="/bin/bash"
|
||||
}
|
||||
|
||||
# user on zsh and did `bash`
|
||||
[[ -n $BASH ]] && export SHELL="/bin/bash"
|
||||
[[ -n $ZSH_NAME ]] && {
|
||||
# user on bash and did `zsh -il`
|
||||
export SHELL="/bin/zsh"
|
||||
|
@ -1,5 +1,6 @@
|
||||
### Sourced as the last entry from ~/.zshrc or ~/.bashrc
|
||||
|
||||
[[ -n $BASH ]] && export SHELL="/bin/bash" # user on zsh and did `bash`
|
||||
# shellcheck disable=SC1091
|
||||
source "/sf/bin/funcs.sh" 2>/dev/null
|
||||
|
||||
|
10
sfbin/sf
10
sfbin/sf
@ -148,15 +148,9 @@ load_env
|
||||
echo -e "Try \`curl 'https://www.dan.me.uk/torlist/?exit' >'${SF_DATADIR}/share/tor-exit-nodes.txt'\`"
|
||||
}
|
||||
|
||||
[[ ! -f "${SF_DATADIR}/share/relay-exit-nodes-mullvad.txt" ]] && {
|
||||
WARN 'Not found: data/share/relay-exit-nodes-mullvad.txt'
|
||||
echo -e "See contrib/cronjob how to create it."
|
||||
}
|
||||
[[ ! -f "${SF_DATADIR}/share/relay-exit-nodes-mullvad.txt" ]] && WARN "Not found: data/share/relay-exit-nodes-mullvad.txt - ${CDM}See contrib/cronjob how to create it.${CN}"
|
||||
|
||||
[[ ! -f "${SF_DATADIR}/share/proxies.txt" ]] && {
|
||||
WARN 'Not found: data/share/proxies.txt'
|
||||
echo -e "See contrib/cronjob how to create it."
|
||||
}
|
||||
[[ ! -f "${SF_DATADIR}/share/proxies.txt" ]] && WARN "Not found: data/share/proxies.txt - ${CDM}See contrib/cronjob how to create it.${CN}"
|
||||
|
||||
[[ ! -f "${SF_BASEDIR}/config/etc/relay-exit-nodes-global.txt" ]] && {
|
||||
WARN "Not found: ${SF_BASEDIR}/config/etc/relay-exit-nodes-global.txt"
|
||||
|
Loading…
Reference in New Issue
Block a user