Skip to content

Commit

Permalink
Fix script
Browse files Browse the repository at this point in the history
  • Loading branch information
wenovus committed Nov 10, 2023
1 parent 07f37a3 commit 31f8d57
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmd_gen/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -233,8 +233,8 @@ function run-dir() {
echo $cmd "${options[@]}" "$@" > ${prefix}cmd
status=0
$cmd "${options[@]}" "${script_options[@]}" "$@" &> ${prefix}pass || status=1
cd "$outdir/oc"
if [[ $status -eq "0" ]]; then
cd "$outdir/oc"
go mod init &>> ${prefix}pass || status=1
go mod tidy &>> ${prefix}pass || status=1
goimports -w *.go &>> ${prefix}pass || status=1
Expand Down
2 changes: 1 addition & 1 deletion cmd_gen/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -203,8 +203,8 @@ function run-dir() {
echo $cmd "${options[@]}" "$@" > ${prefix}cmd
status=0
$cmd "${options[@]}" "${script_options[@]}" "$@" &> ${prefix}pass || status=1
cd "$outdir/oc"
if [[ $status -eq "0" ]]; then
cd "$outdir/oc"
go mod init &>> ${prefix}pass || status=1
go mod tidy &>> ${prefix}pass || status=1
goimports -w *.go &>> ${prefix}pass || status=1
Expand Down

0 comments on commit 31f8d57

Please sign in to comment.