Fix installation target bug #7
Regular → Executable
+4
-5
@@ -1,10 +1,9 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# Installs the Git repo object sizes tool.
|
||||
#
|
||||
# Usage:
|
||||
# ./install.sh [TARGET]
|
||||
# Default for TARGET is /usr/local/bin/git-repo-object-sizes
|
||||
|
||||
target=/usr/local/bin/git-repo-object-sizes
|
||||
|
||||
curl https://repo.jcloud-services.ddns.net/software/git-repo-object-sizes/git-repo-object-sizes_latest_linux_amd64.tar.gz | tar -xzf - -O ./git-repo-object-sizes.sh > $target;
|
||||
curl https://repo.jcloud-services.ddns.net/software/git-repo-object-sizes/git-repo-object-sizes_latest_linux_amd64.tar.gz | tar -xzf - -O git-repo-object-sizes/git-repo-object-sizes.sh > "$target"
|
||||
|
||||
chmod +x "$target"
|
||||
Reference in New Issue
Block a user