Skip to content

Commit 42567fd

Browse files
author
Murilo Marinho
committed
Rename rosdep and fix temp folder
1 parent 3eba6de commit 42567fd

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

.devel/build_ros2.sh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -68,16 +68,16 @@ marinholab_pkg_array=(
6868
# Update rosdep only once
6969
####################################################################
7070

71-
if [ ! -f "$HOME/rosdep_ros2.yaml" ]; then
71+
if [ ! -f "$HOME/rosdep_sas_lgpl.yaml" ]; then
7272
# Create link
73-
ln -s "$PWD/rosdep_ros2.yaml" "$HOME/rosdep_ros2.yaml"
73+
ln -s "$PWD/rosdep_sas_lgpl.yaml" "$HOME/rosdep_sas_lgpl.yaml"
7474

7575
# Rosdep
7676
sudo rosdep init
7777

7878
# Add sas packages to rosdep
7979
cd ~ || exit 1
80-
echo "yaml file:///$HOME/rosdep_ros2.yaml" | sudo tee -a /etc/ros/rosdep/sources.list.d/20-default.list
80+
echo "yaml file:///$HOME/rosdep_sas_lgpl.yaml" | sudo tee -a /etc/ros/rosdep/sources.list.d/20-default.list
8181

8282
# Update rosdep
8383
rosdep update
@@ -88,16 +88,16 @@ fi
8888
# Create and cd tmp folder
8989
####################################################################
9090

91-
TMP_DIR=`mktemp -d`
91+
TMP_DIR=$(mktemp -d)
9292
echo "Temporary dir $TMP_DIR will be used for this build."
93-
cd $TMP_DIR
93+
cd "$TMP_DIR"
9494

9595
# Create temporary folder removal script. We do not attempt to do that
9696
# here because a wrong rm can be catastrophic. Run at your own risk.
9797
echo "
9898
#!/bin/bash
9999
rm -r $TMP_DIR
100-
" > "~/sas_ws/src/sas/.devel/remove_tmp_folder.sh"
100+
" > "$HOME/src/sas/.devel/remove_tmp_folder.sh"
101101

102102
####################################################################
103103
# Clone all packages

0 commit comments

Comments
 (0)