fastlane/lib/assets/completions/completion.bash in fastlane-2.9.0 vs fastlane/lib/assets/completions/completion.bash in fastlane-2.10.0
- old
+ new
@@ -1,5 +1,7 @@
+#!/bin/bash
+
_fastlane_complete() {
COMPREPLY=()
local word="${COMP_WORDS[COMP_CWORD]}"
local completions=""
@@ -11,10 +13,10 @@
elif [[ -e ".fastlane/Fastfile" ]]; then
file=".fastlane/Fastfile"
fi
# parse 'beta' out of 'lane :beta do', etc
- completions=`cat $file | grep "^\s*lane \:" | awk -F ':' '{print $2}' | awk -F ' ' '{print $1}'`
+ completions=$(grep "^\s*lane \:" $file | awk -F ':' '{print $2}' | awk -F ' ' '{print $1}')
COMPREPLY=( $(compgen -W "$completions" -- "$word") )
}
complete -F _fastlane_complete fastlane