Skip to content

Commit

Permalink
add: information about bin_path (#920)
Browse files Browse the repository at this point in the history
  • Loading branch information
chunyang-wen committed Apr 11, 2022
1 parent c4cb4e0 commit c259d68
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion install.sh
Expand Up @@ -54,7 +54,9 @@ set -euo pipefail
: "${bin_path:=}"

if [[ -z "$bin_path" ]]; then
log "looking for a writeable PATH"
log "bin_path is not set, you can set bin_path to specify the installation path"
log "e.g. export bin_path=/path/to/installation before installing"
log "looking for a writeable path from PATH environment variable"
for path in $(echo "$PATH" | tr ':' '\n'); do
if [[ -w $path ]]; then
bin_path=$path
Expand Down

0 comments on commit c259d68

Please sign in to comment.