Skip to content

Commit

Permalink
refactor: Ping gitlab instead of google
Browse files Browse the repository at this point in the history
  • Loading branch information
axonasif committed May 18, 2021
1 parent 0e42892 commit 880cbfe
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion bin/fetch.in
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ function get_base_dir() {

function get_net_stat() {
geco "\n~ ${_chcking_net_connection_}\n"
if curl --output /dev/null --silent --fail -r 0-0 "https://www.google.com"; then
if curl --output /dev/null --silent --fail -r 0-0 "https://gitlab.com"; then
NET_CONN=yes && return 0
else
NET_CONN=no && geco "\n~ ${_net_connection_unavailable_} ..." && return 1
Expand Down
2 changes: 1 addition & 1 deletion core/_lang_/en
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ _not_available_in_recovery_mode_="Not available in RECOVERY mode"
_press_alt_f7_="Press ${YELLOW}Alt+F7${RC} for GUI"

_function_disabled_="This is either disabled or not available for now"
_chcking_net_connection_="Checking if you are connected to internet by pinging google"
_chcking_net_connection_="Checking if you are connected to internet by pinging Gitlab"
_net_connection_unavailable_="Your internet connection might be either down or you are not connected to the internet\n~ Please make sure you are porperly connected to the internet"
_osroot_not_located_="Failed to locate OSROOT.\nError code 110"
_sel_interface_theme_="Select Interface Theme"
Expand Down
2 changes: 1 addition & 1 deletion core/_lang_/vn
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ _not_available_in_recovery_mode_="Không có sẵn ở Chế độ Recovery"
_press_alt_f7_="Nhấn ${YELLOW}Alt+F7${RC} để quay trở lại GUI (giao diện đồ họa chính)"

_function_disabled_="Chức năng này đang bị tắt hoặc không có sẵn"
_chcking_net_connection_="Ping Google để kiểm tra máy bạn đã kết nối Internet chưa..."
_chcking_net_connection_="Ping Gitlab để kiểm tra máy bạn đã kết nối Internet chưa..."
_net_connection_unavailable_="Internet của bạn đang có vấn đề hoặc chưa kết nối\n~ Hãy kiểm tra lại và chắc chắn rằng bạn đã kết nối nhé !"
_osroot_not_located_="Không tìm thấy OSROOT.\n Mã Error 110"
_sel_interface_theme_="Chọn giao diện"
Expand Down

0 comments on commit 880cbfe

Please sign in to comment.