Skip to content

Make /usr/share/gitlab-runner/clear-docker-cache script /bin/sh compatible

Tomasz Maczukin requested to merge fix/clear-docker-cache-script into master

What does this MR do?

Fixes syntax of packaging/root/usr/share/gitlab-runner/clear-docker-cache script.

Why was this MR needed?

Script was designed to be a /bin/sh compatible script, since some environments including prebuilt containers for Docker executor, are not containing BASH. However in v1.9.0 we've added changes that are using BASH syntax (introduced by !388 (merged)). This MR is fixing this.

Are there points in the code the reviewer needs to double check?

Does this MR meet the acceptance criteria?

  • Documentation created/updated
  • Tests
    • Added for this feature/bug
    • All builds are passing
  • Branch has no merge conflicts with master (if you do - rebase it please)

What are the relevant issue numbers?

Fixes #1995 (closed)

Merge request reports