Skip to content

Commit

Permalink
Improve style
Browse files Browse the repository at this point in the history
  • Loading branch information
mernst committed Sep 5, 2024
1 parent c865d56 commit 33bb1f6
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
6 changes: 2 additions & 4 deletions framework/lib/test_generation/bin/_tool.source
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/bin/bash
#
# This file provides helper functions for the wrapper shell scripts of the test
# generation tools. This file should be included in each wrapper shell script:
Expand All @@ -10,8 +11,6 @@
# separate words.
#

# shellcheck shell=bash

################################################################################
# Helper functions
################################################################################
Expand All @@ -25,8 +24,7 @@ die() {
check_env() {
local var="$1"
local val
# shellcheck disable=SC2086 # would quoting even work?
val=$(eval echo \$$var)
val="$(eval echo \$$var)"
[ -z "$val" ] && die "Variable $var not set!"
}

Expand Down
4 changes: 2 additions & 2 deletions framework/projects/Mockito/chooseDepedencyVersion.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
cd "$1" || (echo "cannot cd to workdir $1" && exit 1)
./gradlew dependencies >> tmpDepend.txt
if grep -q buddy tmpDepend.txt; then
version=$(grep buddy tmpDepend.txt | cut -d: -f 3 | head -1)
cp "$2/framework/projects/Mockito/byte-buddy/byte-buddy-$version.jar" "$1"/compileLib/
version=$(grep buddy tmpDepend.txt | head -1 | cut -d: -f 3)
cp "$2/framework/projects/Mockito/byte-buddy/byte-buddy-$version.jar" "$1/compileLib/"
fi
rm tmpDepend.txt
2 changes: 1 addition & 1 deletion framework/test/test_export_command.sh
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ test_export_properties() {
#################################################################
# Check "dir.bin.classes"
#################################################################
local classes_dir="";
local classes_dir=""
if ! classes_dir=$(_run_export_command "$work_dir" "dir.bin.classes") ; then
die "Export command of $pid-$bid has failed"
fi
Expand Down

0 comments on commit 33bb1f6

Please sign in to comment.