Skip to content

Commit

Permalink
Merge pull request #176 from shishir-a412ed/fix_bug_docker_root_vol
Browse files Browse the repository at this point in the history
get_docker_root_dir: use realpath only when path is not empty.
  • Loading branch information
rhatdan authored Dec 22, 2016
2 parents b7175b4 + f9cd740 commit 6709fe6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docker-storage-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1049,6 +1049,9 @@ get_docker_root_dir(){
;;
esac
done
if [ -z "$path" ];then
return
fi
if ! DOCKER_ROOT_DIR=$(realpath -m $path);then
Fatal "realpath failed on $path"
fi
Expand Down

0 comments on commit 6709fe6

Please sign in to comment.