Skip to content

Commit

Permalink
maintenance.sh: fix weird -1 offset (#2329)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexAubin authored May 12, 2024
1 parent 9049043 commit fc471d7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions maintenance.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ function git_pull_and_update_cron_and_restart_services_if_needed()
# App store
chown -R appstore store
pushd store >/dev/null
modified_after_service_start="$(find *.py translations/ templates/ assets/ -newermt "$(systemctl show --property=ActiveEnterTimestamp appstore | cut -d= -f2 | cut -d' ' -f2-3)-1")"
modified_after_service_start="$(find *.py translations/ templates/ assets/ -newermt "$(systemctl show --property=ActiveEnterTimestamp appstore | cut -d= -f2 | cut -d' ' -f2-3)")"
if [ -n "$modified_after_service_start" ]
then
pushd assets >/dev/null
Expand All @@ -29,7 +29,7 @@ function git_pull_and_update_cron_and_restart_services_if_needed()
# App generator
chown -R appgenerator tools/app_generator
pushd tools/app_generator >/dev/null
modified_after_service_start="$(find *.py translations/ templates/ static/ -newermt "$(systemctl show --property=ActiveEnterTimestamp appgenerator | cut -d= -f2 | cut -d' ' -f2-3)-1")"
modified_after_service_start="$(find *.py translations/ templates/ static/ -newermt "$(systemctl show --property=ActiveEnterTimestamp appgenerator | cut -d= -f2 | cut -d' ' -f2-3)")"
if [ -n "$modified_after_service_start" ]
then
pushd assets >/dev/null
Expand All @@ -44,7 +44,7 @@ function git_pull_and_update_cron_and_restart_services_if_needed()

# Autoreadme
pushd tools/readme_generator >/dev/null
modified_after_service_start="$(find *.py translations/ templates/ -newermt "$(systemctl show --property=ActiveEnterTimestamp autoreadme | cut -d= -f2 | cut -d' ' -f2-3)-1")"
modified_after_service_start="$(find *.py translations/ templates/ -newermt "$(systemctl show --property=ActiveEnterTimestamp autoreadme | cut -d= -f2 | cut -d' ' -f2-3)")"
if [ -n "$modified_after_service_start" ]
then
systemctl restart autoreadme
Expand Down

0 comments on commit fc471d7

Please sign in to comment.