mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-07-21 18:11:35 +00:00
empty config files should not be marked for exists
Signed-off-by: Justin Cormack <justin.cormack@docker.com>
This commit is contained in:
parent
bd0d295eaf
commit
9844e5f82f
@ -37,7 +37,9 @@ KEY=$(echo $2 | sed 's@^/@@')
|
||||
|
||||
if [ $1 == "exists" ]
|
||||
then
|
||||
[ -e ${BASE}/${KEY} ] && exit 0 || exit 1
|
||||
[ -d ${BASE}/${KEY} ] && exit 0
|
||||
[ -f ${BASE}/${KEY} -a ! -z "$(cat ${BASE}/${KEY})" ] && exit 0
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [ $1 == "dir" ]
|
||||
|
Loading…
Reference in New Issue
Block a user