gphoto2: Replace tail with awk

master
Ville Skyttä 2014-11-16 12:24:40 +02:00
parent 7d3de619d1
commit 89add74ae0
1 changed files with 2 additions and 2 deletions

View File

@ -24,14 +24,14 @@ _gphoto2()
;;
--port)
COMPREPLY=( $(compgen -W "$( $1 --list-ports 2>/dev/null | \
tail -n +4 | awk '{ print $1 }' )" -- "$cur") )
awk 'NR>3 { print $1 }' )" -- "$cur") )
__ltrim_colon_completions "$cur"
return 0
;;
--camera)
local IFS=$'\n'
COMPREPLY=( $(compgen -W "$( $1 --list-cameras 2>/dev/null | \
tail -n +3 | awk -F'"' '{ print $2 }' )" -- "$cur") )
awk -F'"' 'NR>2 { print $2 }' )" -- "$cur") )
return 0
;;
--get-config|--set-config|--set-config-index|--set-config-value)