Commit 77ebe26
committed
fix: handle SSH service restart gracefully in different environments (fixes #2)
- Check both sshd and ssh service names
- Suppress error output to avoid confusing users
- Show warning instead of success when restart fails
- Provide manual restart instructions for WSL2/container environments
- Resolves issue where script showed error and success messages
- Fixes #21 parent 44f44d8 commit 77ebe26
1 file changed
Lines changed: 8 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
256 | 256 | | |
257 | 257 | | |
258 | 258 | | |
259 | | - | |
260 | | - | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
261 | 267 | | |
262 | 268 | | |
263 | 269 | | |
| |||
0 commit comments