Skip to content

Commit

Permalink
Create ~/.local/bin if it does not exist
Browse files Browse the repository at this point in the history
In linux, the installer used to just exit if the dir did not exist. Now we create the dir instead. Makes for a better experience. In future might ask where you want to install it.
  • Loading branch information
liias committed Apr 25, 2023
1 parent 95065ea commit 1f17c83
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions extra/linux/dist/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

INSTALL_DIR="$HOME/.local/bin"
if [ ! -d "$INSTALL_DIR" ]; then
echo "$INSTALL_DIR does not exist. Please install manually"
exit 1
mkdir -p "$INSTALL_DIR"
echo "$INSTALL_DIR did not exist. We created it for you. If you have any issues make sure that the dir is in PATH."
fi

THIS_DIR="$(dirname "$0")"
Expand Down

0 comments on commit 1f17c83

Please sign in to comment.