Skip to content

Commit

Permalink
Fix build sh error
Browse files Browse the repository at this point in the history
```
/bin/sh: 1: [[: not found
```

Signed-off-by: Dale Haiducek <[email protected]>
  • Loading branch information
dhaiducek authored and openshift-merge-robot committed Jul 21, 2023
1 parent eb638f1 commit 36a630d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,7 @@ build-binary:

.PHONY: build-release
build-release:
@if [[ $(shell git status --porcelain | wc -l) -gt 0 ]]; \
then \
@if [ $(shell git status --porcelain | wc -l) -gt 0 ]; then \
echo "There are local modifications in the repo" > /dev/stderr; \
exit 1; \
fi
Expand Down
2 changes: 1 addition & 1 deletion cmd/PolicyGenerator/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ func main() {
Version = info.Main.Version
}

if Version == "" {
if Version == "" || Version == "(devel)" {
Version = "Unversioned binary"
}
}
Expand Down

0 comments on commit 36a630d

Please sign in to comment.