Skip to content

Commit

Permalink
Merge branch 'version-fix' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
Philipp Heckel committed Sep 25, 2021
2 parents 6dc5c3c + eb8c7d4 commit 4d65667
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -192,14 +192,14 @@ sudo apt install replbot
**Debian/Ubuntu** (*manual install*)**:**
```bash
sudo apt install tmux
wget https://github.com/binwiederhier/replbot/releases/download/v0.4.5/replbot_0.4.5_amd64.deb
dpkg -i replbot_0.4.5_amd64.deb
wget https://github.com/binwiederhier/replbot/releases/download/v0.5.2/replbot_0.5.2_amd64.deb
dpkg -i replbot_0.5.2_amd64.deb
```

**Fedora/RHEL/CentOS:**
```bash
# Make sure that "tmux" is installed
rpm -ivh https://github.com/binwiederhier/replbot/releases/download/v0.4.5/replbot_0.4.5_amd64.rpm
rpm -ivh https://github.com/binwiederhier/replbot/releases/download/v0.5.2/replbot_0.5.2_amd64.rpm
```

**Docker:**
Expand All @@ -224,8 +224,8 @@ go get -u heckel.io/replbot
**Manual install** (*any x86_64-based Linux*)**:**
```bash
# Make sure that "tmux" is installed
wget https://github.com/binwiederhier/replbot/releases/download/v0.4.5/replbot_0.4.5_linux_x86_64.tar.gz
sudo tar -C /usr/bin -zxf replbot_0.4.5_linux_x86_64.tar.gz replbot
wget https://github.com/binwiederhier/replbot/releases/download/v0.5.2/replbot_0.5.2_linux_x86_64.tar.gz
sudo tar -C /usr/bin -zxf replbot_0.5.2_linux_x86_64.tar.gz replbot
```

## Building
Expand Down
2 changes: 1 addition & 1 deletion util/tmux.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ func CheckTmuxVersion() error {
if err != nil {
return err
}
if version < requiredVersion {
if version < requiredVersion-0.01 { // floats are fun
return fmt.Errorf("tmux version too low: tmux %.1f required, but found tmux %.1f", requiredVersion, version)
}
return nil
Expand Down

0 comments on commit 4d65667

Please sign in to comment.