We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9cae94e commit 2ae1352Copy full SHA for 2ae1352
.devel/build_ros2.sh
@@ -85,12 +85,19 @@ fi
85
86
87
####################################################################
88
-# Create tmp folder
+# Create and cd tmp folder
89
90
91
-rm -rf tmp_ros2
92
-mkdir tmp_ros2
93
-cd tmp_ros2
+TMP_DIR=`mktemp -d`
+echo "Temporary dir $TMP_DIR will be used for this build."
+cd $TMP_DIR
94
+
95
+# Create temporary folder removal script. We do not attempt to do that
96
+# here because a wrong rm can be catastrophic. Run at your own risk.
97
+echo "
98
+#!/bin/bash
99
+rm -r $TMP_DIR
100
+" >> "~/sas_ws/src/sas/.devel/remove_tmp_folder.sh"
101
102
103
# Clone all packages
0 commit comments