From a50a99183b4960b957313cb487f20881131963a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stig-=C3=98rjan=20Smelror?= Date: Sat, 16 Mar 2024 00:18:25 +0100 Subject: [PATCH] Added touch command to create installed.json if not found. Included error message for clarity. --- zrep | 1 + 1 file changed, 1 insertion(+) diff --git a/zrep b/zrep index 1adf721..ee92a14 100755 --- a/zrep +++ b/zrep @@ -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