Skip to content
This repository was archived by the owner on Oct 13, 2023. It is now read-only.

Commit 00f9304

Browse files
daixiang0thaJeztah
authored andcommitted
fix eq issue
Signed-off-by: Xiang Dai <764524258@qq.com> (cherry picked from commit bfec9e6) Signed-off-by: Sebastiaan van Stijn <github@gone.nl> Upstream-commit: 9d310a42baee4880fc93a4eff29fab7a2f4b96f6 Component: packaging
1 parent 86c5143 commit 00f9304

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

components/packaging/deb/gen-deb-ver

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ origVersion=$VERSION
77
[[ $# < 2 ]] && echo 'not enough args' && exit 1
88

99
DATE_COMMAND="date"
10-
if [[ $(uname) -eq "Darwin" ]]; then
10+
if [[ $(uname) == "Darwin" ]]; then
1111
DATE_COMMAND="docker run --rm alpine date"
1212
fi
1313

components/packaging/rpm/gen-rpm-ver

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ VERSION=$2
66
[[ $# < 2 ]] && echo 'not enough args' && exit 1
77

88
DATE_COMMAND="date"
9-
if [[ $(uname) -eq "Darwin" ]]; then
9+
if [[ $(uname) == "Darwin" ]]; then
1010
DATE_COMMAND="docker run --rm alpine date"
1111
fi
1212

components/packaging/static/gen-static-ver

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ if [ -z "$ENGINE_DIR" ] || [ -z "$VERSION" ]; then
99
fi
1010

1111
DATE_COMMAND="date"
12-
if [[ $(uname) -eq "Darwin" ]]; then
12+
if [[ $(uname) == "Darwin" ]]; then
1313
DATE_COMMAND="docker run --rm alpine date"
1414
fi
1515
GIT_COMMAND="git -C $ENGINE_DIR"

0 commit comments

Comments
 (0)