From 52aca8159eee1509dd366ce85f361c9199b83138 Mon Sep 17 00:00:00 2001 From: Flavio Castelli Date: Wed, 30 Aug 2023 11:12:57 +0200 Subject: [PATCH] fix: ensure portability of `tr` Without this fix the execution of `tr` on a linux system would not work as expected. The following warning was shown at runtime: > tr: warning: an unescaped backslash at end of string is not portable Signed-off-by: Flavio Castelli --- install-template.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install-template.sh b/install-template.sh index b7640bf..a0e239d 100644 --- a/install-template.sh +++ b/install-template.sh @@ -11,7 +11,7 @@ fi echo "Installing toolchain $HERMIT_TOOLCHAIN with rustup." rustup toolchain install $HERMIT_TOOLCHAIN -RUSTC_SYSROOT="$(rustc +$HERMIT_TOOLCHAIN --print=sysroot | tr '\' '/')" +RUSTC_SYSROOT="$(rustc +$HERMIT_TOOLCHAIN --print=sysroot | tr '\\' '/')" SCRIPT_DIR="${0%/*}" echo "Installing rust-std-hermit to $RUSTC_SYSROOT" "$SCRIPT_DIR/rust-install.sh" --prefix="$RUSTC_SYSROOT" --disable-ldconfig