mirror of
https://github.com/aljazceru/addons.git
synced 2025-12-17 21:24:20 +01:00
Bugfix cleanup config folder git (#166)
* Update run.sh * Update config.json
This commit is contained in:
@@ -11,7 +11,7 @@ REPEAT_INTERVAL=$(jq --raw-output '.repeat.interval' $CONFIG_PATH)
|
||||
# init config repositorie
|
||||
if [ ! -d /config/.git ]; then
|
||||
echo "[Info] cleanup config folder and clone from repositorie"
|
||||
rm -rf /config/*
|
||||
rm -rf /config/.[!.]* /config/* 2&> /dev/null
|
||||
|
||||
if ! git clone "$REPOSITORIE" /config 2&> /dev/null; then
|
||||
echo "[Error] can't clone $REPOSITORIE into /config"
|
||||
|
||||
Reference in New Issue
Block a user