From d14f10e2a5fb9aa52cd09a29ead81dc05ab991ea Mon Sep 17 00:00:00 2001 From: Valentin Lab Date: Mon, 16 Dec 2019 16:13:16 +0100 Subject: [PATCH] fix: invalid cache file names Signed-off-by: Valentin Lab --- bin/compose-core | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/bin/compose-core b/bin/compose-core index f7f69b4..2b35b05 100755 --- a/bin/compose-core +++ b/bin/compose-core @@ -3397,7 +3397,7 @@ _setup_state_dir() { get_docker_compose_help_msg() { - local action="$1" cache_file="$CACHEDIR/$FUNCNAME.cache.$(echo "$1"; cat "$(which docker-compose)" | md5_compat)" \ + local action="$1" cache_file="$CACHEDIR/$FUNCNAME.cache.$({ p0 "$1"; cat "$(which docker-compose)"; } | md5_compat)" \ docker_compose_help_msg if [ -e "$cache_file" ]; then cat "$cache_file" && @@ -3411,7 +3411,7 @@ get_docker_compose_help_msg() { get_docker_compose_usage() { - local action="$1" cache_file="$CACHEDIR/$FUNCNAME.cache.$(echo "$1"; cat "$(which docker-compose)" | md5_compat)" \ + local action="$1" cache_file="$CACHEDIR/$FUNCNAME.cache.$({ p0 "$1"; cat "$(which docker-compose)"; } | md5_compat)" \ docker_compose_help_msg if [ -e "$cache_file" ]; then cat "$cache_file" && @@ -3429,7 +3429,7 @@ get_docker_compose_usage() { get_docker_compose_opts_help() { - local action="$1" cache_file="$CACHEDIR/$FUNCNAME.cache.$(echo "$1"; cat "$(which docker-compose)" | md5_compat)" \ + local action="$1" cache_file="$CACHEDIR/$FUNCNAME.cache.$({ p0 "$1"; cat "$(which docker-compose)"; } | md5_compat)" \ docker_compose_help_msg if [ -e "$cache_file" ]; then cat "$cache_file" && @@ -3448,7 +3448,7 @@ get_docker_compose_opts_help() { get_docker_compose_commands_help() { - local action="$1" cache_file="$CACHEDIR/$FUNCNAME.cache.$(echo "$1"; cat "$(which docker-compose)" | md5_compat)" \ + local action="$1" cache_file="$CACHEDIR/$FUNCNAME.cache.$({ p0 "$1"; cat "$(which docker-compose)"; } | md5_compat)" \ docker_compose_help_msg if [ -e "$cache_file" ]; then cat "$cache_file" && @@ -3467,7 +3467,7 @@ get_docker_compose_commands_help() { get_docker_compose_opts_list() { - local action="$1" cache_file="$CACHEDIR/$FUNCNAME.cache.$(echo "$1"; cat "$(which docker-compose)" | md5_compat)" \ + local action="$1" cache_file="$CACHEDIR/$FUNCNAME.cache.$({ p0 "$1"; cat "$(which docker-compose)"; } | md5_compat)" \ docker_compose_help_msg if [ -e "$cache_file" ]; then cat "$cache_file" &&