Skip to content
Snippets Groups Projects
Commit 4d9b1a57 authored by Montaño Sarria, Andres Felipe's avatar Montaño Sarria, Andres Felipe
Browse files

Remove echoes

parent eb5483d4
No related branches found
No related tags found
No related merge requests found
#!/bin/bash
#!/usr/bin/env bash
# Setup ros environment
source "/opt/ros/$ROS_DISTRO/setup.bash"
exec "$@"
\ No newline at end of file
# Check if the shell is Bash or Zsh
if [ -n "$BASH_VERSION" ]; then
# Bash
source "/opt/ros/$ROS_DISTRO/setup.bash"
elif [ -n "$ZSH_VERSION" ]; then
# Zsh
source "/opt/ros/$ROS_DISTRO/setup.zsh"
else
echo "Unknown shell. This script is designed for Bash and Zsh."
return 1
fi
exec "$@"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment