From a42d954d9aa72b4d7597ac05684c4a351a55104b Mon Sep 17 00:00:00 2001 From: Jacob Floyd Date: Tue, 7 Nov 2023 15:12:53 -0600 Subject: [PATCH] Install scie-pants in `~/.local/bin` instead of `~/bin` Using `~/bin` does not follow the XDG based directory spec[1] which recommends `~/.local/bin` and does not offer an `XDG_` env var alternative similar to other paths. [1] https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html --- get-pants.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/get-pants.sh b/get-pants.sh index 56ee4f2..cae178e 100755 --- a/get-pants.sh +++ b/get-pants.sh @@ -163,7 +163,7 @@ Once installed, if you want to update your "pants" launcher binary, use -h | --help: Print this help message. -d | --bin-dir: - The directory to install the scie-pants binary in, "~/bin" by default. + The directory to install the scie-pants binary in, "~/.local/bin" by default. -b | --base-name: The name to use for the scie-pants binary, "pants" by default. @@ -176,7 +176,7 @@ Once installed, if you want to update your "pants" launcher binary, use EOF } -bin_dir="${HOME}/bin" +bin_dir="${HOME}/.local/bin" base_name="pants" version="latest/download" while (($# > 0)); do