Browse Source

fix: was not compatible with ``busybox`` version of ``readlink``.

This will be required in a docker container based on alpine for
instance.
test
Valentin Lab 6 years ago
parent
commit
0085403e54
  1. 2
      bin/compose

2
bin/compose

@ -2150,7 +2150,7 @@ get_default_project_name() {
fi fi
compose_yml_location="$(get_compose_yml_location)" || return 1 compose_yml_location="$(get_compose_yml_location)" || return 1
if [ "$compose_yml_location" ]; then if [ "$compose_yml_location" ]; then
if normalized_path=$(readlink -e "$compose_yml_location"); then
if normalized_path=$(readlink -f "$compose_yml_location"); then
echo "$(basename "$(dirname "$normalized_path")")" echo "$(basename "$(dirname "$normalized_path")")"
return 0 return 0
fi fi

Loading…
Cancel
Save