Skip to content

Commit af29e20

Browse files
committed
Add SKIP_CREATE_SETTINGS_FILE for archive import plugin
1 parent a3b9e5d commit af29e20

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

lib/include/settings.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,12 @@ function create_settings() {
5959
then
6060
return
6161
fi
62+
if [ "$SKIP_CREATE_SETTINGS_FILE" = 1 ]
63+
then
64+
# this is used for archive importer
65+
wrn "WARNING: skipping auto creation of $current_settings_file"
66+
return
67+
fi
6268
local i
6369
log "FileError: '$current_settings_file' not found"
6470
read -p "Do you want to create one? [y/N]" -n 1 -r

0 commit comments

Comments
 (0)