merge pull request #152 from zackbradys/main

updated readme and hauler `install.sh`
This commit is contained in:
Zack Brady
2023-12-20 19:56:57 -05:00
committed by GitHub
2 changed files with 11 additions and 14 deletions

View File

@@ -14,20 +14,19 @@ For more information, please review the **[Hauler Documentation](https://rancher
### Linux/Darwin
```bash
# install latest release
# installs latest release
curl -sfL https://get.hauler.dev | bash
# install specific release
curl -sfL https://get.hauler.dev | HAULER_VERSION=0.4.1 bash
```
### Windows
```bash
# coming soon
```
### Homebrew
```bash
# installs latest release
brew tap rancherfederal/homebrew-tap
brew install hauler
```
### Windows
```bash
# coming soon
```

View File

@@ -9,7 +9,7 @@
# Install Latest Release
# - curl -sfL https://get.hauler.dev | bash
# Install Specific Release
# - curl -sfL https://get.hauler.dev | HAULER_VERSION=0.4.1 bash
# - curl -sfL https://get.hauler.dev | HAULER_VERSION=0.4.2 bash
# Documentation:
# - https://hauler.dev
@@ -34,9 +34,7 @@ function fatal {
}
# check for required dependencies
dependencies=("curl" "awk" "openssl" "tar" "rm")
for cmd in "${dependencies[@]}"; do
for cmd in curl sed awk openssl tar rm; do
if ! command -v "$cmd" &> /dev/null; then
fatal "$cmd is not installed"
fi
@@ -46,7 +44,7 @@ done
info "Starting Installation..."
# set version with an environment variable
version=${HAULER_VERSION:-0.4.1}
version=${HAULER_VERSION:-$(curl -s https://api.github.com/repos/rancherfederal/hauler/releases/latest | grep '"tag_name":' | sed 's/.*"v\([^"]*\)".*/\1/')}
# set verision with an argument
while [[ $# -gt 0 ]]; do