Skip to content

Commit

Permalink
Simplify bash completion sourcing
Browse files Browse the repository at this point in the history
because it was broken in bash 3.2
  • Loading branch information
curusarn committed Jan 17, 2020
1 parent bacb4cd commit 2b7dfc1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions scripts/util.sh
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,7 @@ __resh_bash_completion_init() {
i=$bash_completion_dir/$i
# shellcheck disable=SC2154
# shellcheck source=/dev/null
[[ ${i##*/} != @($_backup_glob|Makefile*|$_blacklist_glob) \
&& -f $i && -r $i ]] && . "$i"
[[ -f "$i" && -r "$i" ]] && . "$i"
done
fi
}
Expand Down

0 comments on commit 2b7dfc1

Please sign in to comment.