Skip to content

Commit 47ee75f

Browse files
authored
Update build_ros2.sh
Output version in `SAS_VERSION`
1 parent e898ef9 commit 47ee75f

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

.devel/build_ros2.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@ done
115115
# Remove any leading zeros otherwise the version name will not fit the bloom requirements
116116
# https://unix.stackexchange.com/questions/79371/removing-leading-zeros-from-date-output
117117
VERSION=$(date +"%-y.%-m.%-d%H%M%S")
118+
echo "version=${VERSION}" > SAS_VERSION
118119

119120
####################################################################
120121
# Remove current installation
@@ -138,4 +139,4 @@ for pkg_name in "${combined_pkg_array[@]}"; do
138139
# https://stackoverflow.com/questions/3306007/replace-a-string-in-shell-script-using-a-variable
139140
sudo dpkg -i ros-"$rosv"-"${pkg_name//_/-}"_*"$ubuntuv"*.deb
140141
${var//12345678/$replace}
141-
done
142+
done

0 commit comments

Comments
 (0)