mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-09-15 22:59:36 +00:00
exists allows directories too in mobyconfig
Signed-off-by: Justin Cormack <justin.cormack@docker.com>
This commit is contained in:
@@ -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" ]
|
||||
|
Reference in New Issue
Block a user