Skip to content

Commit 36a630d

Browse files
dhaiducekopenshift-merge-robot
authored andcommitted
Fix build sh error
``` /bin/sh: 1: [[: not found ``` Signed-off-by: Dale Haiducek <[email protected]>
1 parent eb638f1 commit 36a630d

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

Makefile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,7 @@ build-binary:
7373

7474
.PHONY: build-release
7575
build-release:
76-
@if [[ $(shell git status --porcelain | wc -l) -gt 0 ]]; \
77-
then \
76+
@if [ $(shell git status --porcelain | wc -l) -gt 0 ]; then \
7877
echo "There are local modifications in the repo" > /dev/stderr; \
7978
exit 1; \
8079
fi

cmd/PolicyGenerator/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ func main() {
2828
Version = info.Main.Version
2929
}
3030

31-
if Version == "" {
31+
if Version == "" || Version == "(devel)" {
3232
Version = "Unversioned binary"
3333
}
3434
}

0 commit comments

Comments
 (0)