Skip to content

Commit

Permalink
merge pull request #152 from zackbradys/main
Browse files Browse the repository at this point in the history
updated readme and hauler `install.sh`
  • Loading branch information
zackbradys authored Dec 21, 2023
2 parents f982f51 + aecd37d commit 990ade9
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 12 deletions.
13 changes: 6 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,19 +14,18 @@ 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
### Homebrew
```bash
# coming soon
# installs latest release
brew tap rancherfederal/homebrew-tap
brew install hauler
```

### Homebrew
### Windows
```bash
# coming soon
```
Expand Down
8 changes: 3 additions & 5 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 990ade9

Please sign in to comment.