From 8c3fd77cfdb8aa038d97938656d65c5fcc9e3f30 Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Sat, 23 Jan 2021 14:26:56 -0500 Subject: [PATCH] fix: do not exit if the phase file does not exist --- plugins/storage/functions | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plugins/storage/functions b/plugins/storage/functions index d8b8e4dae..86d3b096e 100755 --- a/plugins/storage/functions +++ b/plugins/storage/functions @@ -25,5 +25,7 @@ check_if_path_exists() { get_bind_mounts() { declare desc="strips docker options and prints mounts" local -r phase_file_path=$1 - [[ -r "$phase_file_path" ]] && sed -e '/^-v/!d' -e 's/^-v/ /' <"$phase_file_path" + if [[ -r "$phase_file_path" ]]; then + sed -e '/^-v/!d' -e 's/^-v/ /' <"$phase_file_path" + fi }