From b21bcca2b6362183ec550c8d4d26094cf24d2ef7 Mon Sep 17 00:00:00 2001 From: Christopher Beckmann Date: Wed, 3 May 2023 12:49:50 +0200 Subject: [PATCH] Update 'install.sh' --- install.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/install.sh b/install.sh index 21e2899..35953a3 100644 --- a/install.sh +++ b/install.sh @@ -61,6 +61,12 @@ function user_confirm_overwrite { function download_config { if [ -z "$P_CONFIG" ]; then return 0; fi mkdir -p "$CONFIG_PATH/$1/" + + contains_path="${2%*/*}" + if [ -z $contains_path ]; then + mkdir -p "$CONFIG_PATH/$1/$contains_path/" + fi + FILE="$CONFIG_PATH/$1/$2" if [ ! -e "$FILE" ] || user_confirm_overwrite "$FILE"; then wget -O "$FILE" "$3" > /dev/null 2>&1