Skip to content

Commit

Permalink
feat: 📝 improve installation script
Browse files Browse the repository at this point in the history
  • Loading branch information
OnCloud125252 committed May 22, 2024
1 parent f058ba0 commit 08b9320
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions install/install.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@ function Install-Tool {
Add-To-Path

$env:Path = [System.Environment]::GetEnvironmentVariable("Path","Machine") + ";" + [System.Environment]::GetEnvironmentVariable("Path","User")
$version = & "$app_path" --version

Write-Host "Successfully installed $app_name." -ForegroundColor $GREEN
Write-Host "Please open a new PowerShell session to start using $app_name." -ForegroundColor $YELLOW
Write-Host "Successfully installed $version." -ForegroundColor $GREEN
}


Expand Down
3 changes: 2 additions & 1 deletion install/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@ function install() {
sudo wget $download_link -q --show-progress --progress=bar:force -O /usr/local/bin/$app_name
echo -e -n "${NC}"
sudo chmod +x /usr/local/bin/$app_name
echo -e "${GREEN}${CHECKMARK} Successfully installed ${BLUE}$app_name${GREEN}.${NC}"
app_version=$(/usr/local/bin/$app_name --version)
echo -e "${GREEN}${CHECKMARK} Successfully installed ${BLUE}$app_version${GREEN}.${NC}"
}

if [ -f /usr/local/bin/$app_name ]; then
Expand Down

0 comments on commit 08b9320

Please sign in to comment.