Skip to content

Commit

Permalink
Update COSMOS helper script to provide script usage example on error
Browse files Browse the repository at this point in the history
  • Loading branch information
Jbsco committed May 22, 2024
1 parent aa30f31 commit 82bca83
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions gnd/cosmos/install_cosmos_plugin.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,16 @@ adamant_assembly_name=$1
cosmos_install_name=$2
if [[ $1 == "" ]]
then
echo "Adamant assembly location argument not provided, exiting."
exit 0
echo "Adamant assembly name argument not provided."
echo "Usage: \"./install_cosmos_plugin.sh Adamant_assembly_name path_to_COSMOS_directory\""
echo "Exiting."
exit 1
elif [[ $2 == "" ]]
then
echo "COSMOS installation location argument not provided, exiting."
exit 0
echo "COSMOS installation location argument not provided."
echo "Usage: \"./install_cosmos_plugin.sh Adamant_assembly_name path_to_COSMOS_directory\""
echo "Exiting."
exit 1
fi
cosmos_install_dir=`realpath ../../../$cosmos_install_name`
cosmos_plugin_dir=`realpath $cosmos_install_dir/openc3-cosmos-${adamant_assembly_name//_/-}`
Expand Down

0 comments on commit 82bca83

Please sign in to comment.