diff options
author | guillaume.lambert <guillaume.lambert@orange.com> | 2022-05-10 22:04:23 +0200 |
---|---|---|
committer | Cédric Ollivier <cedric.ollivier@orange.com> | 2023-03-27 15:08:21 +0200 |
commit | de85f0b134d3e6aaeb3f81c93fd70dc72d92d785 (patch) | |
tree | 5aa43c0795efff279f463bb3aa3f4d5ef74fe58d /docker/benchmarking/hooks/post_checkout | |
parent | c244314b781ccf6893efb45c259b8cf96fad98f2 (diff) |
Stop bashing functest scripts
Though bash is a good interactive user shell
and apart portability concerns,
many UN*X systems and GNU+Linux distributions now prefers Almquist
or Kornshell variants for scripting in order to improve the system
performance and maintenability.
https://wiki.ubuntu.com/DashAsBinSh
https://mywiki.wooledge.org/Bashism
https://en.wikipedia.org/wiki/Almquist_shell
Signed-off-by: guillaume.lambert <guillaume.lambert@orange.com>
Change-Id: I32c5490f9eab54e6cac594f3eac1e392edf8b272
(cherry picked from commit b9fedb6868306a6e3145b7ee851ea3a84353df9c)
Diffstat (limited to 'docker/benchmarking/hooks/post_checkout')
-rw-r--r-- | docker/benchmarking/hooks/post_checkout | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docker/benchmarking/hooks/post_checkout b/docker/benchmarking/hooks/post_checkout index 8d0e98124..c347524ea 100644 --- a/docker/benchmarking/hooks/post_checkout +++ b/docker/benchmarking/hooks/post_checkout @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/sh from="${DOCKER_REPO%/*}/functest-core:${DOCKER_TAG}" sed -i "s|^FROM.*$|FROM ${from}|" Dockerfile |