Skip to content

Commit

Permalink
Update newApp.ps1
Browse files Browse the repository at this point in the history
  • Loading branch information
emadadel4 committed Nov 24, 2024
1 parent 8adf747 commit f196b11
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions newApp.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -111,9 +111,12 @@ function Download-Mthoed {
# Prompt the user for input
$choco = Read-Host "Enter Chocolatey package name"
$choco = ($choco -replace "choco install", "" -replace ",,", ",").Trim()
if ($choco -eq "") { $choco = "none" } # Set default value if empty

# Prompt the user for input
$winget = Read-Host "Enter winget package"
if ($winget -eq "") { $winget = "none" } # Set default value if empty

# Remove the string 'winget install -e --id' and any spaces from the input
$cleanedWinget = $winget -replace "winget install -e --id", "" -replace "\s+", ""

Expand Down

0 comments on commit f196b11

Please sign in to comment.