exists allows directories too in mobyconfig

Signed-off-by: Justin Cormack <justin.cormack@docker.com>
This commit is contained in:
Justin Cormack 2016-04-08 13:25:35 +01:00
parent 9f5e02bbdf
commit efec39212d

View File

@ -37,7 +37,7 @@ KEY=$(echo $2 | sed 's@^/@@')
if [ $1 == "exists" ]
then
[ -f ${BASE}/${KEY} ] && exit 0 || exit 1
[ -e ${BASE}/${KEY} ] && exit 0 || exit 1
fi
if [ $1 == "dir" ]