summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Beyer <matthias.beyer@ifm.com>2022-08-11 13:50:59 +0200
committerMatthias Beyer <matthias.beyer@ifm.com>2022-08-16 16:07:04 +0200
commitaeb3d11304078d15ae196cbca54e43bb4d16ead5 (patch)
tree1c814cac96afad0deaf6955af369073e437fa63a
parent2a9f08b0f5d536ab7421c4b2abffd6b94c12a304 (diff)
Fix: POSIX echo might not expand escape sequences
Because of this we switch to bash and use `echo -e`. Signed-off-by: Matthias Beyer <matthias.beyer@ifm.com>
-rw-r--r--plugins/tedge_docker_plugin/tedge_docker_plugin.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/tedge_docker_plugin/tedge_docker_plugin.sh b/plugins/tedge_docker_plugin/tedge_docker_plugin.sh
index 706bc144..1bdb3bd1 100644
--- a/plugins/tedge_docker_plugin/tedge_docker_plugin.sh
+++ b/plugins/tedge_docker_plugin/tedge_docker_plugin.sh
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
usage() {
cat << EOF
@@ -49,7 +49,7 @@ extract_image_tag_from_args() {
}
if [ -z "$1" ]; then
- echo "Provide at least one subcommand\n"
+ echo -e "Provide at least one subcommand\n"
usage
exit 1
fi