Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add appending to PATH instruction inside installation script #641

Merged
merged 1 commit into from
Aug 30, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 13 additions & 5 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ FLAGS:
OPTIONS:
--repo REPO Github Repository to install the binary from [default: dora-rs]
--bin BIN Name of the binary to install [default: dora]
--tag TAG Tag (version) of the bin to install, defaults to latest release
--tag TAG Tag (version) of the bin to install, defaults to latest release
--to LOCATION Where to install the binary [default: ~/.dora/bin]
--target TARGET
EOF
Expand Down Expand Up @@ -182,7 +182,7 @@ else
download "$archive" - | tar -C "$td" -xz
fi

echo "Placing dora-rs cli in $dest/$bin"
echo "Placing dora-rs cli in $dest/$bin"

if [ -e "$dest/$bin" ] && [ "$force" = false ]; then
err "\`$dest/$bin\` already exists"
Expand All @@ -191,8 +191,16 @@ else
cp "$td/$bin" "$dest/$bin"
chmod 755 "$dest/$bin"
echo ""
echo " Update PATH:"
echo "export PATH=\$PATH:$dest/$bin"
echo "To run Dora CLI from your terminal, you must add ~/.dora/bin to your PATH."
echo "For bashrc terminal Run:"
echo " echo 'export PATH=\$PATH:$dest' >> ~/.bashrc"
echo " source ~/.bashrc"
echo ""
echo "For zshrc terminal Run:"
echo " echo 'export PATH=\$PATH:$dest' >> ~/.zshrc"
echo " source ~/.zshrc"
echo ""
echo "To run Dora CLI without adding to PATH, '~/.dora/bin/dora'"
fi

rm -rf "$td"
rm -rf "$td"
Loading