diff options
author | Matthias Beyer <matthias.beyer@ifm.com> | 2022-08-11 13:50:59 +0200 |
---|---|---|
committer | Matthias Beyer <matthias.beyer@ifm.com> | 2022-08-16 16:07:04 +0200 |
commit | e71f2a700642a3c6593f237e9ca39c62c5fc2eda (patch) | |
tree | 22d73df562ff18ae823837a9019b8734fb800a23 | |
parent | 37c13c5d2ee8753ccd37d4c4df8bad3b7ed76ac2 (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>
-rwxr-xr-x | get-thin-edge_io.sh | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/get-thin-edge_io.sh b/get-thin-edge_io.sh index 1e1dd467..f2b696a6 100755 --- a/get-thin-edge_io.sh +++ b/get-thin-edge_io.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash set -e TYPE=${2:-full} @@ -81,14 +81,14 @@ if [ -t 1 ]; then fi fi -echo "${BLUE}Thank you for trying thin-edge.io! ${COLORRESET}\n" +echo -e "${BLUE}Thank you for trying thin-edge.io! ${COLORRESET}\n" if [ -z "$VERSION" ]; then VERSION=0.7.3 - echo "Version argument has not been provided, installing latest: ${BLUE}$VERSION${COLORRESET}" + echo -e "Version argument has not been provided, installing latest: ${BLUE}$VERSION${COLORRESET}" echo "To install a particular version use this script with the version as an argument." - echo "For example: ${BLUE}sudo ./get-thin-edge_io.sh $VERSION${COLORRESET}" + echo -e "For example: ${BLUE}sudo ./get-thin-edge_io.sh $VERSION${COLORRESET}" fi if [ "$ARCH" = "aarch64" ] || [ "$ARCH" = "arm64" ] || [ "$ARCH" = "armhf" ] || [ "$ARCH" = "amd64" ]; then @@ -136,9 +136,9 @@ rm -R /tmp/tedge # Test if tedge command is there and working if tedge help >/dev/null; then - echo "\n${BLUE}thin-edge.io is now installed on your system!${COLORRESET}" + echo -e "\n${BLUE}thin-edge.io is now installed on your system!${COLORRESET}" echo "" - echo "You can go to our documentation to find next steps:${BLUE} https://github.com/thin-edge/thin-edge.io/blob/main/docs/src/howto-guides/003_registration.md ${COLORRESET}" + echo -e "You can go to our documentation to find next steps:${BLUE} https://github.com/thin-edge/thin-edge.io/blob/main/docs/src/howto-guides/003_registration.md ${COLORRESET}" else - echo "Something went wrong in the installation process please try the manual installation steps instead:\n https://github.com/thin-edge/thin-edge.io/blob/main/docs/src/howto-guides/002_installation.md" + echo -e "Something went wrong in the installation process please try the manual installation steps instead:\n https://github.com/thin-edge/thin-edge.io/blob/main/docs/src/howto-guides/002_installation.md" fi |