Update 'install.sh'

This commit is contained in:
2023-05-03 12:49:50 +02:00
parent f54a875651
commit b21bcca2b6

View File

@@ -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