Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions scripts/for_all_contracts_exec.sh
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,6 @@ EXAMPLES
EOF
}

command=( "${@:2}" )

options=$(getopt -o p:o:i:q --long path:,output:,ignore:,quiet,partition: -- "$@")
[ $? -eq 0 ] || {
>&2 echo "Incorrect option provided"
Expand Down Expand Up @@ -99,7 +97,7 @@ while true; do
shift
done

command=("${@}")
command=("$@")

if ([ "$partitioning" = true ] && \
(! [[ "$m" =~ ^[0-9]+$ ]] || ! [[ "$n" =~ ^[0-9]+$ ]] || [ "$m" -gt "$n" ] || [ "$m" -le 0 ] || [ "$n" -le 0 ])) || \
Expand Down Expand Up @@ -203,7 +201,7 @@ for (( i = start; i <= end; i++ )); do
>&2 echo Running: "${command[@]}"
fi
echo "evaluating command" ${command[@]} >&2
eval "${command[@]}" >> "$output"
"${command[@]}" >> "$output"

if [ $? -eq 0 ]; then
successes+=("$manifest_path")
Expand Down
Loading