Skip to content

Commit 0581c7d

Browse files
authored
Update install script to make asset executable
This calls chmod +x on the asset file so that it can be executed. In order to avoid repetition, the `INSTALL_DIR` variable is now used, which effectively also adds support for changing the install directory.
1 parent dc36075 commit 0581c7d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

install.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ OS_NAME=$(uname -s)
55
ARCH_NAME=$(uname -m)
66
OS=""
77
ARCH=""
8+
INSTALL_DIR=${INSTALL_DIR:-/usr/local/bin}
89

910
if [ "$OS_NAME" = "Linux" ]; then
1011
OS="linux"
@@ -30,4 +31,5 @@ else
3031
exit 1
3132
fi
3233

33-
sudo wget -O /usr/local/bin/git-lzc "https://github.com/spenserblack/git-lazy-commit/releases/latest/download/git-lzc-$OS-$ARCH"
34+
sudo wget -O "$INSTALL_DIR/git-lzc" "https://github.com/spenserblack/git-lazy-commit/releases/latest/download/git-lzc-$OS-$ARCH"
35+
sudo chmod +x "$INSTALL_DIR/git-lzc"

0 commit comments

Comments
 (0)