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
compose_yml_location="$(get_compose_yml_location)" || return 1
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")")"
return 0
fi

Loading…
Cancel
Save