Improve error messages on problems

This commit is contained in:
Martin Schulze 2020-09-22 01:08:06 +02:00
parent 969b50fb32
commit ca3ebc6c40
1 changed files with 1 additions and 1 deletions

View File

@ -154,7 +154,7 @@ function private_config_path() {
# @return path to the folder where the config is duplicated # @return path to the folder where the config is duplicated
function duplicate_config_for_container() { function duplicate_config_for_container() {
output="$(private_config_path "$2")" output="$(private_config_path "$2")"
rm -rf "$output" # cleanup rm -r "${output:?}/" # cleanup
mkdir -p "$output" mkdir -p "$output"
cp -r "$PWD/test/config/${1:?}/." "$output" cp -r "$PWD/test/config/${1:?}/." "$output"
echo "$output" echo "$output"