path works for directories too

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

View File

@ -59,7 +59,7 @@ fi
if [ $1 == "path" ]
then
if [ -f ${BASE}/${KEY} ]
if [ -e ${BASE}/${KEY} ]
then
printf ${BASE}/${KEY}
exit 0