mirror of
https://github.com/projectatomic/atomic.git
synced 2026-02-05 09:44:59 +01:00
bash: do not print error if checkout dir doesn't exist
Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1387860 Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com> Closes: #722 Approved by: rhatdan
This commit is contained in:
committed by
Atomic Bot
parent
fb3779349e
commit
3190da65f8
@@ -105,7 +105,8 @@ __atomic_system_containers_images() {
|
||||
__atomic_system_containers_containers() {
|
||||
local containers
|
||||
CHECKOUT_DIR=`test -e /etc/atomic.conf && grep "^checkout_path:" /etc/atomic.conf | cut -d' ' -f2`
|
||||
containers="$(ls -1 ${CHECKOUT_DIR:-/var/lib/containers/atomic/} | grep -v \.[01]$)"
|
||||
CHECKOUT_DIR=${CHECKOUT_DIR:-/var/lib/containers/atomic/}
|
||||
test -e ${CHECKOUT_DIR} && containers="$(ls -1 ${CHECKOUT_DIR} | grep -v \.[01]$)" || containers=""
|
||||
COMPREPLY+=( $(compgen -W "$containers" -- "$cur") )
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user