mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-07-26 20:18:52 +00:00
exists allows directories too in mobyconfig
Signed-off-by: Justin Cormack <justin.cormack@docker.com>
This commit is contained in:
parent
9f5e02bbdf
commit
efec39212d
@ -37,7 +37,7 @@ KEY=$(echo $2 | sed 's@^/@@')
|
|||||||
|
|
||||||
if [ $1 == "exists" ]
|
if [ $1 == "exists" ]
|
||||||
then
|
then
|
||||||
[ -f ${BASE}/${KEY} ] && exit 0 || exit 1
|
[ -e ${BASE}/${KEY} ] && exit 0 || exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ $1 == "dir" ]
|
if [ $1 == "dir" ]
|
||||||
|
Loading…
Reference in New Issue
Block a user