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