Commit 30983d5
committed
fix(install): never block on interactive sudo; fall back to ~/.local/bin
When the install dir isn't writable, install.sh ran a bare `sudo mv` that
hangs forever in non-interactive `curl | sh` (agents/CI have no TTY to
answer the password prompt). Try passwordless `sudo -n` first; otherwise
install to $HOME/.local/bin instead of blocking. Also mkdir -p the target
so a caller-provided FLASHDUTY_INSTALL_DIR that doesn't exist yet works.1 parent 056b20b commit 30983d5
1 file changed
Lines changed: 17 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
170 | 170 | | |
171 | 171 | | |
172 | 172 | | |
173 | | - | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
174 | 177 | | |
175 | 178 | | |
176 | | - | |
177 | | - | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
178 | 183 | | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
179 | 193 | | |
180 | | - | |
181 | 194 | | |
182 | 195 | | |
183 | 196 | | |
| |||
0 commit comments