Update 'install.sh'
This commit is contained in:
@@ -61,6 +61,12 @@ function user_confirm_overwrite {
|
|||||||
function download_config {
|
function download_config {
|
||||||
if [ -z "$P_CONFIG" ]; then return 0; fi
|
if [ -z "$P_CONFIG" ]; then return 0; fi
|
||||||
mkdir -p "$CONFIG_PATH/$1/"
|
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"
|
FILE="$CONFIG_PATH/$1/$2"
|
||||||
if [ ! -e "$FILE" ] || user_confirm_overwrite "$FILE"; then
|
if [ ! -e "$FILE" ] || user_confirm_overwrite "$FILE"; then
|
||||||
wget -O "$FILE" "$3" > /dev/null 2>&1
|
wget -O "$FILE" "$3" > /dev/null 2>&1
|
||||||
|
|||||||
Reference in New Issue
Block a user