Skip to content

Commit 37f0dd5

Browse files
author
Murilo Marinho
committed
[build_ros2.sh] Leaving temporary folder alone as it's used in other places.
1 parent 703cb6c commit 37f0dd5

1 file changed

Lines changed: 3 additions & 10 deletions

File tree

.devel/build_ros2.sh

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -88,16 +88,9 @@ fi
8888
# Create and cd tmp folder
8989
####################################################################
9090

91-
TMP_DIR=$(mktemp -d)
92-
echo "Temporary dir $TMP_DIR will be used for this build."
93-
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-
" > "$HOME/sas_ws/src/sas/.devel/remove_tmp_folder.sh"
91+
rm -rf tmp_ros2
92+
mkdir tmp_ros2
93+
cd tmp_ros2
10194

10295
####################################################################
10396
# Clone all packages

0 commit comments

Comments
 (0)