aboutsummaryrefslogtreecommitdiffstats
path: root/bash_completion
diff options
context:
space:
mode:
authorPierre Fenoll <[email protected]>2018-05-03 17:55:48 +0200
committerGitHub <[email protected]>2018-05-03 17:55:48 +0200
commit9c615ea9cc2723cae5d0c0bf9cc9965350afebe7 (patch)
tree51634c9eb6280eea5935811d1f31bf1444c6fcb0 /bash_completion
parent8d96c2baaed87a53432c5e4e2947423d3ebaab1e (diff)
downloadkerl-9c615ea9cc2723cae5d0c0bf9cc9965350afebe7.tar.gz
kerl-9c615ea9cc2723cae5d0c0bf9cc9965350afebe7.tar.bz2
kerl-9c615ea9cc2723cae5d0c0bf9cc9965350afebe7.zip
Testing odbc+wx on OTP 20.3 on a slim jessie (#271)
* wx-20.3: seeing about kerl/kerl/issues/270 * wx-20.3: less failible test + less deps * wx-20.3: move linux tests out of TravisCI into CircleCI * wx-20.3: always use git backend (erlang.org is still down) * wx-20.3: work around fact that erlang.org is down in .travis.yml * wx-20.3: fix some things * wx-20.3: looks like skipping happens too late * Revert "wx-20.3: looks like skipping happens too late" This reverts commit e0600cefa71760e9bd74e7efc37089d5d75e764e. * wx-20.3: that should fix it * wx-20.3: run shellcheck in circle, now travis is only about osx! * wx-20.3: that did not fix it (cc @mrallen1) * wx-20.3: shellcheck stable segfaults? * wx-20.3: should fix shellcheck segfault * SC1117: Backslash is literal in "\!". Prefer explicit escaping: "\\!". Not sure about the csh one. @mcrallen1 you have a clue? * wx-20.3: SC2207: Prefer mapfile or read -a to split command output (or quote to avoid splitting). * wx-20.3: SC2154: words is referenced but not assigned. * wx-20.3: replace some double quotes with simple ones * wx-20.3: ps not found on debian9!? * wx-20.3: what now * wx-20.3: lets try a later vsn * wx-20.3: some cleaning up * wx-20.3: YAML fun * wx-20.3: wat
Diffstat (limited to 'bash_completion')
-rw-r--r--bash_completion/kerl20
1 files changed, 10 insertions, 10 deletions
diff --git a/bash_completion/kerl b/bash_completion/kerl
index d620a4d..f9e0058 100644
--- a/bash_completion/kerl
+++ b/bash_completion/kerl
@@ -12,42 +12,42 @@ _kerl()
case $prev in
kerl)
- COMPREPLY=( $( compgen -W "build install update list delete active path status" -- "$cur" ) )
+ mapfile -t COMPREPLY < <( compgen -W 'build install update list delete active path status' -- "$cur" )
;;
list)
- COMPREPLY=( $( compgen -W "releases builds installations" -- "$cur" ) )
+ mapfile -t COMPREPLY < <( compgen -W 'releases builds installations' -- "$cur" )
;;
build)
if [ "$COMP_CWORD" -eq 2 ]; then
if [ -f "$HOME"/.kerl/otp_releases ]; then
RELEASES=$(cat "$HOME"/.kerl/otp_releases)
fi
- COMPREPLY=( $( compgen -W "git $RELEASES" -- "$cur") )
+ mapfile -t COMPREPLY < <( compgen -W "git $RELEASES" -- "$cur")
else
if [ -f "$HOME"/.kerl/otp_builds ]; then
BUILDS=$(cut -d ',' -f 2 "$HOME"/.kerl/otp_builds)
fi
- COMPREPLY=( $( compgen -W "$BUILDS" -- "$cur") )
+ mapfile -t COMPREPLY < <( compgen -W "$BUILDS" -- "$cur")
fi
;;
installation)
if [ -f "$HOME"/.kerl/otp_installations ]; then
PATHS=$(cut -d ' ' -f 2 "$HOME"/.kerl/otp_installations)
fi
- COMPREPLY=( $( compgen -W "$PATHS" -- "$cur") )
+ mapfile -t COMPREPLY < <( compgen -W "$PATHS" -- "$cur")
;;
install)
if [ -f "$HOME"/.kerl/otp_builds ]; then
BUILDS=$(cut -d ',' -f 2 "$HOME"/.kerl/otp_builds)
fi
- COMPREPLY=( $( compgen -W "$BUILDS" -- "$cur") )
+ mapfile -t COMPREPLY < <( compgen -W "$BUILDS" -- "$cur")
;;
path)
INSTALL_LIST="$HOME"/.kerl/otp_installations
if [ -f "$INSTALL_LIST" ]; then
NAMES=$(cut -d ' ' -f 2 "$INSTALL_LIST" | xargs basename)
fi
- COMPREPLY=( $( compgen -W "$NAMES" -- "$cur") )
+ mapfile -t COMPREPLY < <( compgen -W "$NAMES" -- "$cur")
;;
deploy)
if [ "$COMP_CWORD" -eq 3 ]; then
@@ -55,13 +55,13 @@ _kerl()
PATHS=$(cut -d ' ' -f 2 "$HOME"/.kerl/otp_installations)
fi
fi
- COMPREPLY=( $( compgen -W "$PATHS" -- "$cur") )
+ mapfile -t COMPREPLY < <( compgen -W "$PATHS" -- "$cur")
;;
delete)
- COMPREPLY=( $( compgen -W "build installation $words" -- "$cur") )
+ mapfile -t COMPREPLY < <( compgen -W 'build installation' -- "$cur")
;;
update)
- COMPREPLY=( $( compgen -W "releases" -- "$cur") )
+ mapfile -t COMPREPLY < <( compgen -W 'releases' -- "$cur")
;;
*)
if [ "$COMP_CWORD" -eq 3 ]; then