Skip to content

Commit 9600ec3

Browse files
committed
use expr
1 parent f0b7d80 commit 9600ec3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.cirrus.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ linux_task_template: &LINUX_TASK_TEMPLATE
6060
fingerprint_script:
6161
- wget --quiet https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh
6262
- echo "${CIRRUS_OS} $(sha256sum miniconda.sh)"
63-
- echo "$(date +%Y).$(($(echo $(date +%U) | sed 's/^0*//') / ${CACHE_PERIOD})):${CONDA_CACHE_BUILD}"
63+
- echo "$(date +%Y).$(expr $(date +%U) / ${CACHE_PERIOD}):${CONDA_CACHE_BUILD}"
6464
populate_script:
6565
- bash miniconda.sh -b -p ${HOME}/miniconda
6666
- conda config --set always_yes yes --set changeps1 no
@@ -72,12 +72,12 @@ linux_task_template: &LINUX_TASK_TEMPLATE
7272
folder: ${HOME}/.local/share/cartopy
7373
fingerprint_script:
7474
- echo "${CIRRUS_OS}"
75-
- echo "$(date +%Y).$(($(echo $(date +%U) | sed 's/^0*//') / ${CACHE_PERIOD})):${CARTOPY_CACHE_BUILD}"
75+
- echo "$(date +%Y).$(expr $(date +%U) / ${CACHE_PERIOD}):${CARTOPY_CACHE_BUILD}"
7676
nox_cache:
7777
folder: ${CIRRUS_WORKING_DIR}/.nox
7878
fingerprint_script:
7979
- echo "${CIRRUS_TASK_NAME}"
80-
- echo "$(date +%Y).$(($(echo $(date +%U) | sed 's/^0*//') / ${CACHE_PERIOD})):${NOX_CACHE_BUILD}"
80+
- echo "$(date +%Y).$(expr $(date +%U) / ${CACHE_PERIOD}):${NOX_CACHE_BUILD}"
8181
- sha256sum ${CIRRUS_WORKING_DIR}/requirements/ci/py$(echo ${PY_VER} | tr -d ".").yml
8282

8383

@@ -100,7 +100,7 @@ lint_task:
100100
folder: ~/.cache/pip
101101
fingerprint_script:
102102
- echo "${CIRRUS_TASK_NAME}"
103-
- echo "$(date +%Y).$(($(echo $(date +%U) | sed 's/^0*//') / ${CACHE_PERIOD})):${PIP_CACHE_BUILD} ${PIP_CACHE_PACKAGES}"
103+
- echo "$(date +%Y).$(expr $(date +%U) / ${CACHE_PERIOD}):${PIP_CACHE_BUILD} ${PIP_CACHE_PACKAGES}"
104104
lint_script:
105105
- pip list
106106
- python -m pip install --retries 3 --upgrade ${PIP_CACHE_PACKAGES}

0 commit comments

Comments
 (0)