Skip to content

Commit a050190

Browse files
committed
PowerShell is weird
1 parent c64888a commit a050190

File tree

3 files changed

+14
-9
lines changed

3 files changed

+14
-9
lines changed

docs/about/roadmap.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@ This page also lists all minor and major releases since 2.X. Patches aren't list
88

99
**Patch releases are made on a weekly basis, and feature releases are made on a monthly basis.** You can check more info in [our release schedule document here](https://github.com/FuckingNode/FuckingNode/blob/master/RELEASE_SCHEDULE.md).
1010

11-
## 5.X (Released)
11+
## 5.X
12+
13+
## Version 5.0 (Released)
1214

1315
- [x] Improve `setup`.
1416
- [x] Add more setups (LICENSEs, gitignores, etc...).

docs/install.ps1

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,23 +8,26 @@ $INSTALL_DIR = "C:\$($APP_NAME.CASED)"
88
$EXE_PATH = Join-Path -Path $INSTALL_DIR -ChildPath "$($APP_NAME.CLI).exe"
99

1010
Function Remove-IfNeeded {
11-
if ($args.Count -gt 0 -and ($args[0] -as [int])) {
12-
Write-Output "Updating existing install (PID $args[0])"
13-
Stop-Process -Id $args[0] -Force
14-
Remove-Item $EXE_PATH -Force
11+
if ($args.Count -gt 0) {
12+
$procId = $args[0] -as [int]
13+
if ($procId) {
14+
Write-Output "Updating existing install (PID $procId)"
15+
Stop-Process -Id $procId -Force
16+
Remove-Item $EXE_PATH -Force
17+
}
1518
}
1619
}
1720

1821
# get latest release URL
1922
Function Get-LatestReleaseUrl {
2023
try {
21-
Write-Output "Fetching latest release from GitHub..."
24+
Write-Host "Fetching latest release from GitHub..."
2225
$response = Invoke-RestMethod -Uri "https://api.github.com/repos/FuckingNode/FuckingNode/releases/latest"
2326
$asset = $response.assets | Where-Object { $_.name -notlike "*.asc" -and $_.name -like "*.exe" }
2427
if (-not $asset) {
2528
Throw "No .exe file found in the latest release."
2629
}
27-
Write-Output "Fetched."
30+
Write-Host "Fetched."
2831
return $asset.browser_download_url
2932
}
3033
catch {
@@ -112,7 +115,7 @@ Function Install-App {
112115
Write-Output "Downloaded successfully to $EXE_PATH"
113116
}
114117
catch {
115-
Throw "Failed to download or save the file: $_"
118+
Throw "Failed to download fuckingnode.exe: $_"
116119
}
117120
}
118121

docs/manual/fknode-yaml.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ It's something like this:
215215
Info:
216216

217217
- All commands run in order and block each other.
218-
- Colons are not required, but double colons are accepted. `~foo` is equal to `~"foo"`.
218+
- Colons are not required. Single and double colons are accepted. `~foo` is equal to `~"foo"` and `~'foo'`.
219219
- Cmd output is not live, meaning if a command writes to the stdout step by step, you won't see that until it ends execution.
220220

221221
You can use CmdSets for the following project settings:

0 commit comments

Comments
 (0)