Commit be0f9da
Add bash 4+ version check to pack plugin (#2358)
* Add bash 3.3+ version check to pack plugin
The pack plugin uses associative arrays (declare -A) which require
bash 4.0+, but has existing checks for bash > 3 on lines 162 and 230.
Add early version check to disable and return if bash < 3.3.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <[email protected]>
* Add plugin disable calls to version checks in history-eternal and percol
Both plugins already had bash version checks with early returns, but
didn't explicitly disable themselves. Now they call _disable-plugin
before returning to ensure consistent plugin state.
- history-eternal: requires bash 4.3+ for unlimited history
- percol: requires bash 4.0+ for bind -x functionality
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <[email protected]>
* Standardize return codes and log messages for version checks
Changed both plugins to return 0 instead of 1/nothing and added
consistent log messages explaining why the plugin is being disabled:
- history-eternal: return 0 with "Disabling history-eternal plugin" message
- percol: return 0 with "Disabling percol plugin" message
This provides clearer feedback to users and consistent exit codes.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <[email protected]>
* add version checks on install and init
* Update bash_it.sh
Co-authored-by: Koichi Murase <[email protected]>
* By the Book
* correct version check
---------
Co-authored-by: Ira Abramov <[email protected]>
Co-authored-by: Claude <[email protected]>
Co-authored-by: Koichi Murase <[email protected]>1 parent ae82116 commit be0f9da
File tree
5 files changed
+28
-4
lines changed- plugins/available
5 files changed
+28
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
5 | 12 | | |
6 | 13 | | |
7 | 14 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
4 | 11 | | |
5 | 12 | | |
6 | 13 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
8 | 10 | | |
9 | 11 | | |
10 | 12 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
4 | 11 | | |
5 | 12 | | |
6 | 13 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
22 | | - | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
23 | 24 | | |
24 | 25 | | |
25 | 26 | | |
| |||
0 commit comments