Skip to content

[Bug]: down4me does not work #2296

Open
@sebelk

Description

@sebelk

Expected behavior

It should tell if the site is down for everyone or just for me.

Current behavior



┌─[✗]──[sergio@munster]─[~]─[○]                                                                                              [lun mar 31 - 00:51]
└──● curl -L "http://downforeveryoneorjustme.com/http://duck.com -Ls "http://downforeveryoneorjustme.com
curl: (3) URL rejected: Malformed input to a URL function
┌─[✗]──[sergio@munster]─[~]─[○]                                                                                              [lun mar 31 - 00:51]
└──● declare -f down4me
down4me () 
{ 
    about 'checks whether a website is down for you, or everybody';
    param '1: website url';
    example '$ down4me http://www.google.com';
    group 'base';
    curl -Ls "http://downforeveryoneorjustme.com/$1" | sed '/just you/!d;s/<[^>]*>//g'

}

Possible solution

No response

Context

No response

Steps to reproduce

down4me www.google.com

Bash-it version

Version type: dev Current git SHA: d763b08 on 2025-03-24T16:03:44+02:00 Commit info: d763b08 Compare to latest: d763b08...master

List of enabled plugins, themes and aliases

Plugins: base,fzf, theme: atomic alias: ansible: ans=ansible' ap=ansible-playbook' general: ls='ls --color=auto' sl=ls' la='ls -AF' # Compact view, show hidden' ll='ls -al' l='ls -a' l1='ls -1' lf='ls -F' ='sudo' vbrc='${VISUAL:-vim} ~/.bashrc' vbpf='${VISUAL:-vim} ~/.bash_profile' grep='grep --color=auto' shuf=gshuf' c='clear' cls='clear' edit='${EDITOR:-${ALTERNATE_EDITOR:-nano}}' pager='${PAGER:=less}' q='exit' irc='${IRC_CLIENT:=irc}' rb='ruby' py='python' ipy='ipython' piano='pianobar' ..='cd ..' # Go up one directory' cd..='cd ..' # Common misspelling for going up one directory' ...='cd ../..' # Go up two directories' ....='cd ../../..' # Go up three directories' -- -='cd -' # Go back' dow='cd /home/$USER/Downloads' # Go to the Downloads directory' h='history' tree="find . -print | sed -e 's;[^/]*/;|;g;s;_|; |;g' md='mkdir -p' rd='rmdir' rmrf='rm -rf' xt='extract' custom: allrpm='rpm -qa --qf "%{name}\n" | sort' c='clear' tempdebian='podman run -v $HOME/to_delete:/mnt:Z -w /mnt -it docker.io/library/debian bash' cp='cp -i' dma='date '+%d-%m-%y' e='exit' httpcode='curl -s -w "%{response_code}\n" -o /dev/null' icat='kitten icat' infowifi='nmcli -p -f general,ip4,wifi-properties device show' ipbr='ip -br' ipcbr='ip -c -br' ipcol='ip -c' ipq='ip -c -br -o' ips='ip -4 -o a | cut -f2,7 -d " ' lns='ln -s' mkdir='mkdir -pv' mv='mv -i' mx='host -t mx' myip='ip -c --br' neovim='nvim' publicip='dig +short myip.opendns.com @resolver1.opendns.com' pulseapps='pactl list clients short|column -t' pulsein='pactl list sources short|column -t' pulseout='pactl list sinks short|column -t' pulsepb='pactl list sink-inputs short|column -t' pulserec='pactl list source-outputs short|column -t' rm='rm -i' s256='sha256sum' scpo='scp -o PubkeyAuthentication=no' ssho='ssh -o PubkeyAuthentication=no' ta='tmux attach' testhttp='curl -s -w "\nResultado:\nTiempo total: %{time_total}s\nTiempo que demora en resolver: %{time_namelookup}s\nVelocidad de descarga: %{speed_download}bps\n" -o /dev/null' update='. /home/sergio/.bashrc' vi='nvim' vi='vim' viba='vim ~/.bashrc' vibaya='viba && update' vihosts='sudo nvim /etc/hosts' vii='vim +startinsert' vim='nvim' vimdiff='vim -d' vimrc='vim ~/.vimrc' vivi='nvim ~/.vimrc' wifis='nmcli device wifi list' x509='openssl x509'

Bash version

GNU bash, versión 5.2.32(1)-release (x86_64-redhat-linux-gnu)

Operating system and version

Fedora 41

bash-it doctor output

DEBUG: core: main: Loading libraries(except appearance)...
DEBUG: lib: colors: Loading library file...
DEBUG: lib: command_duration: Loading library file...
DEBUG: lib: custom: Loading library file...
DEBUG: lib: helpers: Loading library file...
DEBUG: lib: history: Loading library file...
DEBUG: lib: log: Loading library file...
DEBUG: lib: preexec: Loading library file...
DEBUG: lib: preview: Loading library file...
DEBUG: lib: search: Loading library file...
DEBUG: lib: utilities: Loading library file...
DEBUG: core: reloader: Loading all enabled components...
DEBUG: aliases: ansible: Loading component...
DEBUG: aliases: ansible: Loaded.
DEBUG: aliases: general: Loading component...
DEBUG: aliases: general: Command 'gshuf' does not exist
DEBUG: aliases: general: Loaded.
DEBUG: plugin: base: Loading component...
DEBUG: plugin: base: Command 'markdown' does not exist
DEBUG: plugin: base: Loaded.
DEBUG: completion: system: Loading component...
DEBUG: completion: system: Loaded.
DEBUG: completion: bash-it: Loading component...
DEBUG: completion: bash-it: Loaded.
DEBUG: plugin: fzf: Loading component...
DEBUG: plugin: fzf: Command 'fd' does not exist
DEBUG: plugin: fzf: Loaded.
DEBUG: completion: aliases: Loading component...
DEBUG: completion: aliases: Loaded.
DEBUG: core: main: Loading theme 'atomic'.
DEBUG: core: main: Loading custom aliases, completion, plugins...
DEBUG: aliases: custom: Loading component...
DEBUG: completion: custom: Loading component...
DEBUG: core: main: Loading general custom files...
DEBUG: custom: example: Loading custom file...
DEBUG: custom: githubstats: Loading custom file...
DEBUG: core: main: Command 'gloobus-preview' does not exist

Your ~/.bashrc

case $- in
        *i*) ;;
        *) return ;;
esac
export BASH_IT="/home/sergio/.bash_it"
export BASH_IT_THEME='atomic'
export GIT_HOSTING='git@git.domain.com'
unset MAILCHECK
export IRC_CLIENT='irssi'
export TODO="t"
export SCM_CHECK=true
source "$BASH_IT"/bash_it.sh

Notes

No response

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions