File tree 6 files changed +6
-6
lines changed
6 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ build() {
34
34
35
35
check () {
36
36
# 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
38
38
exit 1
39
39
fi
40
40
}
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ build() {
33
33
34
34
check() {
35
35
# 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
37
37
exit 1
38
38
fi
39
39
}
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ override_dh_auto_build:
33
33
cd $(NAME ) ; go version; \
34
34
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 )
35
35
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 \
37
37
exit 1; \
38
38
fi
39
39
mkdir -p completion
Original file line number Diff line number Diff line change @@ -101,7 +101,7 @@ install -Dm 644 %{name}-autocomplete.sh %{buildroot}%{_datadir}/zsh/vendor-compl
101
101
install -Dm 644 %{name }-autocomplete.sh %{buildroot }%{_datadir }/fish/vendor_completions.d/%{name }.fish
102
102
103
103
%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
105
105
106
106
%files
107
107
%license %{name }/LICENSE
Original file line number Diff line number Diff line change @@ -98,7 +98,7 @@ install -Dm 644 %{name}-autocomplete.sh %{buildroot}%{_datadir}/zsh/vendor-compl
98
98
install -Dm 644 %{name }-autocomplete.sh %{buildroot }%{_datadir }/fish/vendor_completions.d/%{name }.fish
99
99
100
100
%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
102
102
103
103
%files
104
104
%license LICENSE
Original file line number Diff line number Diff line change 78
78
cd git2go; make install-static; cd ..
79
79
cp -r git2go/static-build vendor/github.com/libgit2/git2go/v*/
80
80
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 \
82
82
exit 1; \
83
83
fi
84
84
$EXEC completion bash > ${SNAPCRAFT_PART_INSTALL}/${SNAPCRAFT_PROJECT_NAME}.completer
You can’t perform that action at this time.
0 commit comments