Skip to content

Commit

Permalink
REPOS_FILE can be a URL
Browse files Browse the repository at this point in the history
  • Loading branch information
jspricke committed Jan 9, 2023
1 parent ee253ed commit b228fee
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions prepare.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ echo "Install dependencies"

sudo add-apt-repository ppa:v-launchpad-jochen-sprickerhof-de/sbuild
sudo apt update
sudo apt install -y sbuild mmdebstrap distro-info debian-archive-keyring ccache vcstool python3-rosdep2 catkin python3-bloom
sudo apt install -y mmdebstrap distro-info debian-archive-keyring ccache curl vcstool python3-rosdep2 sbuild catkin python3-bloom

echo "Setup build environment"

Expand Down Expand Up @@ -36,4 +36,11 @@ cat ~/.sbuildrc
echo "Checkout workspace"

mkdir src
vcs import src < "$REPOS_FILE"
case $REPOS_FILE in
http*)
curl -sSL "$REPOS_FILE" | vcs import src
;;
*)
vcs import src < "$REPOS_FILE"
;;
esac

0 comments on commit b228fee

Please sign in to comment.