fix: do not exit if the phase file does not exist

This commit is contained in:
Jose Diaz-Gonzalez committed 2021-01-23 14:27:16 -05:00
1 parent 9137be814c
commit 8c3fd77cfd
1 file changed
+3 -1
+3 -1
View File
@@ -25,5 +25,7 @@ check_if_path_exists() {
get_bind_mounts() { get_bind_mounts() {
declare desc="strips docker options and prints mounts" declare desc="strips docker options and prints mounts"
local -r phase_file_path=$1 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
} }