Skip to content

Commit 2627406

Browse files
committed
Remove [git enabled in build: true]
Signed-off-by: Hollow Man <[email protected]>
1 parent adcce4c commit 2627406

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

PKGBUILD

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ build() {
3434

3535
check() {
3636
# check that binary includes pkgver and git enabled
37-
if [ "$(./${pkgname}-${pkgver}/${pkgname} version)" != "Your current version is: v${pkgver} [git enabled in build: true]" ]; then
37+
if [ "$(./${pkgname}-${pkgver}/${pkgname} version)" != "Your current version is: v${pkgver}" ]; then
3838
exit 1
3939
fi
4040
}

PKGBUILD_obs

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ build() {
3333

3434
check() {
3535
# check that binary includes pkgver and git enabled
36-
if [ "$(./deb/${pkgname}/${pkgname} version)" != "Your current version is: v${pkgver} [git enabled in build: true]" ]; then
36+
if [ "$(./deb/${pkgname}/${pkgname} version)" != "Your current version is: v${pkgver}" ]; then
3737
exit 1
3838
fi
3939
}

deb/debian/rules

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ override_dh_auto_build:
3333
cd $(NAME); go version; \
3434
go build -mod=vendor -buildmode=pie -buildvcs=false -ldflags="-s -w -X github.com/$(NAME)/$(NAME)/v3/core/cautils.BuildNumber=v$(VERSION)" -tags=static,gitenabled -o $(NAME)
3535
dh_auto_build
36-
if [ "$$($(KUBESCAPE) version)" != "Your current version is: v${VERSION} [git enabled in build: true]" ]; then \
36+
if [ "$$($(KUBESCAPE) version)" != "Your current version is: v${VERSION}" ]; then \
3737
exit 1; \
3838
fi
3939
mkdir -p completion

kubescape.spec

+1-1
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ install -Dm 644 %{name}-autocomplete.sh %{buildroot}%{_datadir}/zsh/vendor-compl
101101
install -Dm 644 %{name}-autocomplete.sh %{buildroot}%{_datadir}/fish/vendor_completions.d/%{name}.fish
102102

103103
%check
104-
if [ "$(%{buildroot}%{_bindir}/%{name} version)" != "Your current version is: v%{version} [git enabled in build: true]" ]; then exit 1; fi
104+
if [ "$(%{buildroot}%{_bindir}/%{name} version)" != "Your current version is: v%{version}" ]; then exit 1; fi
105105

106106
%files
107107
%license %{name}/LICENSE

kubescape_full.spec

+1-1
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ install -Dm 644 %{name}-autocomplete.sh %{buildroot}%{_datadir}/zsh/vendor-compl
9898
install -Dm 644 %{name}-autocomplete.sh %{buildroot}%{_datadir}/fish/vendor_completions.d/%{name}.fish
9999

100100
%check
101-
if [ "$(%{buildroot}%{_bindir}/%{name} version)" != "Your current version is: v%{version} [git enabled in build: true]" ]; then exit 1; fi
101+
if [ "$(%{buildroot}%{_bindir}/%{name} version)" != "Your current version is: v%{version}" ]; then exit 1; fi
102102

103103
%files
104104
%license LICENSE

snap/snapcraft.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ parts:
7878
cd git2go; make install-static; cd ..
7979
cp -r git2go/static-build vendor/github.com/libgit2/git2go/v*/
8080
go build -mod=vendor -buildmode=pie -buildvcs=false -ldflags="-s -w -X github.com/kubescape/kubescape/v3/core/cautils.BuildNumber=v${SNAPCRAFT_PROJECT_VERSION}" -tags=static,gitenabled -o $EXEC
81-
if [ "$($EXEC version)" != "Your current version is: v${SNAPCRAFT_PROJECT_VERSION} [git enabled in build: true]" ]; then \
81+
if [ "$($EXEC version)" != "Your current version is: v${SNAPCRAFT_PROJECT_VERSION}" ]; then \
8282
exit 1; \
8383
fi
8484
$EXEC completion bash > ${SNAPCRAFT_PART_INSTALL}/${SNAPCRAFT_PROJECT_NAME}.completer

0 commit comments

Comments
 (0)