Skip to content
/ online Public

Utility to check if online or offline. Install and just type `online` in the Witchcraft/Terminal; can be used programmatically

Notifications You must be signed in to change notification settings

Floflis/online

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

19 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

online

Utility to check if online or offline. Install and just type online in the Witchcraft/Terminal


Usage

if online -s; then
   echo "โœ… Its online"
   else
      echo "โŒ Its offline"
fi

Installing

Easy (option 1)

Open the Withcraft/Terminal/Prompt and type + press [ENTER]:

curl --proto '=https' --tlsv1.3 -sSf https://raw.githubusercontent.com/Floflis/online/main/install.sh | sh

Locally (option 2)

If you don't trust downloading+executing a script, you can do it locally.

Open terminal and type following by pressing [ENTER]:

Floflis, Floflis-based distros such as UniOS and any other that uses nu shell:

git clone https://github.com/Floflis/online.git ; cd online

After reviewing the code of install.sh:

chmod +x install.sh ; sh ./install.sh

Any other *nix distro (Ubuntu/Arch/MacOS/etc):

git clone https://github.com/Floflis/online.git && cd online

After reviewing the code of install.sh:

chmod +x install.sh && sh ./install.sh

How to use

Open the Witchcraft/Prompt/Terminal and type:

online

For programatic use, head to Usage.

About

Utility to check if online or offline. Install and just type `online` in the Witchcraft/Terminal; can be used programmatically

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages