commit
b5f2cc3d4e
|
|
@ -27,7 +27,7 @@ _replace_by_history() {
|
|||
|
||||
|
||||
if command -v percol>/dev/null; then
|
||||
local current_version=${BASH_VERSION%%[^0-9]*}
|
||||
current_version=${BASH_VERSION%%[^0-9]*}
|
||||
if [ $current_version -lt 4 ]; then
|
||||
echo -e "\033[91mWarning: You have to upgrade Bash to Bash v4.x to use the 'percol' plugin.\033[m"
|
||||
echo -e "\033[91m Your current Bash version is $BASH_VERSION.\033[m"
|
||||
|
|
|
|||
Loading…
Reference in New Issue