Skip to content

Commit

Permalink
fix bug in --check
Browse files Browse the repository at this point in the history
  • Loading branch information
nbebawy committed Jan 16, 2024
1 parent 642c3d6 commit a378a3e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@ Archub is a command-line tool designed for managing packages in Arch Linux's AUR

## Installation without zsh auto completions
```sh
wget https://github.com/nbebaw/Archub/releases/download/v0.0.3/archub
wget https://github.com/nbebaw/Archub/releases/download/v0.0.4/archub
chmod +x archub
sudo mv archub /usr/bin
```
## Installation with zsh auto completions
```sh
mkdir archub_x86_64
cd archub_x86_64
wget https://github.com/nbebaw/Archub/releases/download/v0.0.3/archub_x86_64.tar.gz
wget https://github.com/nbebaw/Archub/releases/download/v0.0.4/archub_x86_64.tar.gz
tar -xvf archub_x86_64.tar.gz
chmod +x archub
sudo mv archub /usr/bin
Expand Down
7 changes: 5 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,11 @@ func main() {
fmt.Println(err)
}
if packageVersion != newVersion {
fmt.Println("There is an update for the following packages:")
fmt.Printf("%s%s%s %s -> %s\n", lib.ColorLightRed, packageName, lib.ColorNone, packageVersion, newVersion)
if len(newVersion) != 0 {
fmt.Println("There is an update for the following packages:")
fmt.Printf("%s%s%s %s -> %s\n", lib.ColorLightRed, packageName, lib.ColorNone, packageVersion, newVersion)
updateExists = true
}
}
}
if !updateExists {
Expand Down

0 comments on commit a378a3e

Please sign in to comment.