Closed scherztc closed 1 month ago
The date -v breaks outside of the mac environments.
These scripts need to be cleaned up so that we can adjust crontab to use the scripts instead of directly in crontab.
cd /srv/apps/curate_uc export PATH=$PATH:/srv/apps/.gem/ruby/2.7.0/bin export RELEASE_DATE=date +\%Y-\%m-\%d -d "+1 day" RAILS_ENV=production bundle exec rake embargo_release["$RELEASE_DATE"]
date +\%Y-\%m-\%d -d "+1 day"
cd "$(dirname "$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" )" export RELEASE_DATE=date -v +1d "+%Y-\%m-\%d" bundle exec rake embargo_release["$RELEASE_DATE"]
date -v +1d "+%Y-\%m-\%d"
Descriptive summary
The date -v breaks outside of the mac environments.
These scripts need to be cleaned up so that we can adjust crontab to use the scripts instead of directly in crontab.
Expected behavior
cd /srv/apps/curate_uc export PATH=$PATH:/srv/apps/.gem/ruby/2.7.0/bin export RELEASE_DATE=
date +\%Y-\%m-\%d -d "+1 day"
RAILS_ENV=production bundle exec rake embargo_release["$RELEASE_DATE"]Actual behavior
cd "$(dirname "$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" )" export RELEASE_DATE=
date -v +1d "+%Y-\%m-\%d"
bundle exec rake embargo_release["$RELEASE_DATE"]