Skip to content

Commit

Permalink
fix(try): async the update
Browse files Browse the repository at this point in the history
  • Loading branch information
kRHYME7 committed Jul 22, 2024
1 parent 98e30ea commit 737ac2d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Hyde
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ elif ! (awk '{print $1}' <<<$(main_help_content) | grep -qw "${1}" ); then
exit 1
fi

initiate_hyde_command
initiate_hyde_command &
#! DO NOT USE ANY BASH FORMATTER HERE that NUKES some ';' symbols
#! +----------------------------------------------------------------|
#? Add functions below this section
Expand Down
2 changes: 1 addition & 1 deletion Scripts/FUNCTIONS-hyde
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ initiate_hyde_command() {
print_prompt -y "Checking for updates (This prompts every 3 Days or after you run Hyde update)"
NOTIFY "Checking for updates (This prompts every 3 Days or after you run Hyde update)"
if ping -q -c 1 -W 1 8.8.8.8 >/dev/null; then
git fetch >/dev/null 2>&1
git fetch #>/dev/null 2>&1
if [ "$(git rev-parse HEAD)" != "$(git rev-parse @{u})" ]; then
echo -e "Updates available! \nexec: \033[0;34mHyde update\033[0m"
NOTIFY "Updates available! exec: 'Hyde update' to pull the changes upstream"
Expand Down
4 changes: 2 additions & 2 deletions Scripts/GLOBAL-hyde
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,8 @@ print_prompt() {
}

NOTIFY () {
print_prompt -g "[notify] " "${@}"
nohup notify-send "${@}" -e >/dev/null 2>&1 &
print_prompt -g "[notify] " "${*}"
nohup notify-send "${*}" -e >/dev/null 2>&1 &
}

parse_section() {
Expand Down

0 comments on commit 737ac2d

Please sign in to comment.