mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-07-25 03:34:58 +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" ]
|
||||
then
|
||||
[ -f ${BASE}/${KEY} ] && exit 0 || exit 1
|
||||
[ -e ${BASE}/${KEY} ] && exit 0 || exit 1
|
||||
fi
|
||||
|
||||
if [ $1 == "dir" ]
|
||||
|
Loading…
Reference in New Issue
Block a user