diff --git a/plugins/available/percol.plugin.bash b/plugins/available/percol.plugin.bash index 27b98708..66610662 100644 --- a/plugins/available/percol.plugin.bash +++ b/plugins/available/percol.plugin.bash @@ -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"