diff --git a/README.md b/README.md index 047bf31..e8370eb 100644 --- a/README.md +++ b/README.md @@ -51,7 +51,7 @@ curl -sSfL https://raw.githubusercontent.com/rpgeeganage/lazy-tool/main/install. Override the install directory (default `./bin`): ```bash -INSTALL_DIR=/usr/local/bin curl -sSfL https://raw.githubusercontent.com/rpgeeganage/lazy-tool/main/install.sh | sh +curl -sSfL https://raw.githubusercontent.com/rpgeeganage/lazy-tool/main/install.sh | INSTALL_DIR=/usr/local/bin sh ``` ### Go install diff --git a/install.sh b/install.sh index 1e233fe..d1e93ae 100755 --- a/install.sh +++ b/install.sh @@ -4,7 +4,7 @@ set -eu # lazy-tool installer # Usage: # curl -sSfL https://raw.githubusercontent.com/rpgeeganage/lazy-tool/main/install.sh | sh -# INSTALL_DIR=/usr/local/bin curl -sSfL ... | sh +# curl -sSfL ... | INSTALL_DIR=/usr/local/bin sh REPO="rpgeeganage/lazy-tool" INSTALL_DIR="${INSTALL_DIR:-./bin}"