Skip to content

Commit

Permalink
Merge pull request #3 from flavio/fix-tr-execution
Browse files Browse the repository at this point in the history
fix: ensure portability of `tr`
  • Loading branch information
mkroening authored Aug 30, 2023
2 parents 549d3c7 + 52aca81 commit 76caa70
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion install-template.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 76caa70

Please sign in to comment.