Skip to content

Commit

Permalink
fix curl install script
Browse files Browse the repository at this point in the history
  • Loading branch information
marwanhawari committed Mar 8, 2022
1 parent f6878c9 commit 4fc13dc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ Stew supports Linux, macOS, and Windows.

* Install using `curl`:
```
curl -fsSL https://raw.githubusercontent.com/marwanhawari/stew/main/install.sh | bash
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/marwanhawari/stew/main/install.sh)"
```

* Install using `brew`:
Expand Down
4 changes: 3 additions & 1 deletion install.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env bash
#!/bin/bash

# This install script does 3 things:
# 1. Create the stew directory structure
Expand Down Expand Up @@ -90,6 +90,7 @@ stewPath=""
stewBinPath=""

read -r -t 60 -p "Set the stewPath. This will contain all stew data other than the binaries. (${defaultStewPath}): " stewPathInput

if [ -z "$stewPathInput" ]
then
stewPath="${defaultStewPath}"
Expand All @@ -104,6 +105,7 @@ else
fi

read -r -t 60 -p "Set the stewBinPath. This is where the binaries will be installed by stew. (${defaultStewBinPath}): " stewBinPathInput

if [ -z "$stewBinPathInput" ]
then
stewBinPath="${defaultStewBinPath}"
Expand Down

0 comments on commit 4fc13dc

Please sign in to comment.