Skip to content
Snippets Groups Projects
Commit d9a76e1f authored by Thomas Fetzer's avatar Thomas Fetzer
Browse files

[moduleutil] Fix getusedversion.sh for command line use

parent df08bee0
No related branches found
No related tags found
1 merge request!613[moduleutil] Print and throw error if something went wrong while checking the module version
......@@ -7,7 +7,7 @@
# (c) 2016 Christoph Grüninger
#
if [ "${args[1]}" = "-h" ]; then
if [ "$1" = "-h" ]; then
echo "USAGE: ./getDumuxDuneVersions.sh"
echo; exit
fi
......@@ -83,9 +83,9 @@ function getVersionGit
cd ..
}
# run script from comand line
# run script from command line
# suppressed for use of external script when variable set accordingly
if [ "$CALL_FROM_EXTERNAL_SCRIPT" == "no" ]; then
if [ "$CALL_FROM_EXTERNAL_SCRIPT" != "yes" ]; then
echo "# DUNE/DUMUX VERSIONS" > $OUTFILE
echo "Creating file containing the version numbers:"
......
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