From 1a4f4a6f17e9c582220d580a6972ec4f8d5ac57c Mon Sep 17 00:00:00 2001 From: mtuszowski Date: Thu, 19 Dec 2024 22:43:12 +0100 Subject: [PATCH] FIX --- deploy.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/deploy.sh b/deploy.sh index 8dfe419..ff0e8d9 100755 --- a/deploy.sh +++ b/deploy.sh @@ -36,8 +36,12 @@ print_progress "cp ./conjurer/wod_beacon.jpg ./Conjurer/" cp ./conjurer/settings.json ./Conjurer/ print_progress "cp ./conjurer/settings.json ./Conjurer/" -cp ./conjurer/system_gpt_settings.json ./Conjurer/system_gpt_settings.json -print_progress "cp ./conjurer/system_gpt_settings.json ./Conjurer/system_gpt_settings.json" +if [[ ./conjurer/system_gpt_settings.json -nt ./Conjurer/system_gpt_settings.json ]]; then + cp ./conjurer/system_gpt_settings.json ./Conjurer/system_gpt_settings.json + print_progress "cp ./conjurer/system_gpt_settings.json ./Conjurer/system_gpt_settings.json" +else + print_progress "system_gpt_settings.json is up to date" +fi cp ./conjurer/administration_commands.py ./Conjurer/ print_progress "cp ./conjurer/administration_commands.py ./Conjurer/"