From 60b0b467f8f14caa4a0c4c3c378d57ac5b69cb77 Mon Sep 17 00:00:00 2001 From: Lucilio Correia Date: Fri, 8 Nov 2024 08:53:27 -0300 Subject: [PATCH] fix: do recursive creating of backup folders --- scripts/ofelia-config.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/ofelia-config.sh b/scripts/ofelia-config.sh index 5a4194c..831c0eb 100755 --- a/scripts/ofelia-config.sh +++ b/scripts/ofelia-config.sh @@ -16,7 +16,7 @@ while test $# -gt 0; do shift; if test "${arg_value}" = "--save"; then output_path=${OFELIA_CONFIG_PATH:-/etc/ofelia/config.ini}; - mkdir $(dirname $output_path); + mkdir -p $(dirname $output_path); touch ${output_path}; fi done