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/"