From 52949519ed9bc053101cb817e4ff4699c8f56b1c Mon Sep 17 00:00:00 2001 From: Robin Candau Date: Tue, 14 May 2024 09:55:50 +0200 Subject: [PATCH] Use the 'state_up_to_date' function to initialize the state file if it does not exists (#159) instead of doing it manually --- src/script/arch-update.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/script/arch-update.sh b/src/script/arch-update.sh index c3fdd34..ca17034 100755 --- a/src/script/arch-update.sh +++ b/src/script/arch-update.sh @@ -680,7 +680,7 @@ case "${option}" in ;; --tray) if [ ! -f "${statedir}/current_state" ]; then - echo "${name}" > "${statedir}/current_state" + state_up_to_date fi arch-update-tray || exit 3