refactor: cleanup scripts

This commit is contained in:
Abhishek Keshri 2024-03-17 04:00:27 +05:30 committed by Abhishek Keshri
parent 15b06d5196
commit d2e517d76a
9 changed files with 60 additions and 160 deletions

View file

@ -1,11 +1,10 @@
#!/usr/bin/env bash
# setting the locale, some users have issues with different locales, this forces the correct one
export LC_ALL=en_US.UTF-8
HOSTS="google.com github.com example.com"
get_ssid() {
# Check OS
case $(uname -s) in
Linux)
SSID=$(iwgetid -r)
@ -25,14 +24,8 @@ get_ssid() {
fi
;;
CYGWIN* | MINGW32* | MSYS* | MINGW*)
# leaving empty - TODO - windows compatability
;;
*) ;;
CYGWIN* | MINGW32* | MSYS* | MINGW*) ;; # TODO - windows compatability
esac
}
main() {
@ -47,5 +40,4 @@ main() {
echo "$network"
}
#run main driver function
main