Added touch command to create installed.json if not found.

Included error message for clarity.
This commit is contained in:
Stig-Ørjan Smelror 2024-03-16 00:18:25 +01:00
parent fcf519dd68
commit a50a99183b

1
zrep
View File

@ -239,6 +239,7 @@ function zrep_installed_json() {
# Check if installed.json exists
if [[ ! -f "${config[main_zrep_install_dir]}/installed.json" ]]; then
touch ${config[main_zrep_install_dir]}/installed.json
zrep_msg debug "\nError: installed.json not found."
return 1
else