diff --git a/package/etc/bash_completion.d/hassbian-config b/package/etc/bash_completion.d/hassbian-config index 5e9e5cee..55f4918d 100644 --- a/package/etc/bash_completion.d/hassbian-config +++ b/package/etc/bash_completion.d/hassbian-config @@ -7,16 +7,11 @@ _hassbian-config() opts="install upgrade show log share-log" case "${prev}" in - install) - local inst=$(find /opt/hassbian/suites/ -maxdepth 1 -type f -name 'install_*' | grep -v 'install_homeassistant.sh' | awk -F'/|_' ' {print $NF}' | awk -F. '{print $1}') + install|upgrade) + local inst=$(find /opt/hassbian/suites/ -maxdepth 1 -type f | awk -F'/|_' ' {print $NF}' | awk -F. '{print $1}') COMPREPLY=( $(compgen -W "${inst}" -- ${cur}) ) return 0 ;; - upgrade) - local upd=$(find /opt/hassbian/suites/ -maxdepth 1 -type f -name 'upgrade*' | awk -F'/|_' ' {print $NF}' | awk -F. '{print $1}') - COMPREPLY=( $(compgen -W "${upd}" -- ${cur}) ) - return 0 - ;; *) ;; esac