Skip to content

Commit

Permalink
Workaround running installer in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
victorpaleologue committed Nov 14, 2023
1 parent bff08aa commit 67ff695
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions install_with_auto_mode.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,14 @@ fi
if [ -n "$CI" ] && [ "$CI" = 1 ]; then
INSTALL_MODE_FLAG=("--mode" "unattended")
fi
# For ROS 2 CI. It's not ideal...
isDocker(){
local cgroup=/proc/1/cgroup
test -f $cgroup && [[ "$(<$cgroup)" = *:cpuset:/docker/* ]]
}
if [ isDocker ]; then
INSTALL_MODE_FLAG=("--mode" "unattended")
fi

# Unless they specifically agree to the license.
if [ -n "$I_AGREE_TO_PEPPER_MESHES_LICENSE" ] && [ "$I_AGREE_TO_PEPPER_MESHES_LICENSE" = 1 ]; then
Expand Down

0 comments on commit 67ff695

Please sign in to comment.