-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d22e116
commit 74dc161
Showing
2 changed files
with
37 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,15 @@ | ||
echo 'Downloading fcode executable file...' | ||
sudo wget "https://github.com/bilgehannal/foldercode-cli/releases/download/v0.0.1/fcode.${1}" -O /usr/local/bin/fcode | ||
echo 'Checking permissions...' | ||
sudo chmod +x /usr/local/bin/fcode | ||
echo 'Downloading and installing fcode executable file...' | ||
|
||
BASE_RELEASES_URL="https://github.com/bilgehannal/foldercode-cli/releases/download" | ||
VERSION="$1" | ||
DISTRO="$2" | ||
ARCH="$3" | ||
TAR_NAME="foldercode-cli_${VERSION}_${DISTRO}_${ARCH}.tar.gz" | ||
wget "$BASE_RELEASES_URL/v${VERSION}/${TAR_NAME}" | ||
tar -xzvf $TAR_NAME fcode | ||
chmod +x fcode | ||
sudo mv fcode /usr/local/bin/fcode | ||
rm $TAR_NAME | ||
|
||
echo 'fcode is installed.' | ||
echo 'Run: fcode --help' |