1
0

add KFEditor.ini check

This commit is contained in:
GenZmeY 2022-09-26 08:38:11 +03:00
parent 0e821f3dbb
commit a741b23415

View File

@ -244,8 +244,12 @@ function cleanup()
function backup_kfeditorconf () function backup_kfeditorconf ()
{ {
msg "backup $(basename "$KFEditorConf") to $(basename "$KFEditorConfBackup")" if [[ -e "$KFEditorConf" ]]; then
cp -f "$KFEditorConf" "$KFEditorConfBackup" msg "backup $(basename "$KFEditorConf") to $(basename "$KFEditorConfBackup")"
cp -f "$KFEditorConf" "$KFEditorConfBackup"
else
die "$(basename "$KFEditorConf") not found! Run KF2 Editor to generate the config" 2
fi
} }
function restore_kfeditorconf () function restore_kfeditorconf ()