From 0085403e54920a68221f6978c64de6dbbc5b0bb4 Mon Sep 17 00:00:00 2001 From: Valentin Lab Date: Sun, 25 Nov 2018 22:15:41 +0100 Subject: [PATCH] fix: was not compatible with ``busybox`` version of ``readlink``. This will be required in a docker container based on alpine for instance. --- bin/compose | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/compose b/bin/compose index 1ff3ffe..06b0e23 100755 --- a/bin/compose +++ b/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