Skip to content

Commit f0af219

Browse files
committed
handle windows new line
1 parent 27a01f9 commit f0af219

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/msrv.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ installed_version=$(rustup toolchain list | grep "$RUST_VERSION" | awk '{print $
3838

3939
# Read the configuration file and get the packages for the specified version
4040
if [ -f "$CONFIG_FILE" ]; then
41-
packages=$(jq -r --arg version "$RUST_VERSION" '.[$version] | .[]' "$CONFIG_FILE")
41+
packages=$(jq -r --arg version "$RUST_VERSION" '.[$version] | .[]' "$CONFIG_FILE" | tr '\n' ' ')
4242
if [ -z "$packages" ]; then
4343
echo "No packages found for Rust version $RUST_VERSION in the configuration file."
4444
exit 1

0 commit comments

Comments
 (0)