Skip to content

Commit

Permalink
ci/travis/run-build.sh: replace '==' -> '='
Browse files Browse the repository at this point in the history
Only one equal '=' is sufficient in shell to test for equality. This is
according to the original shell standard.
bash is ok with '==' double-equal signs.

The change is mostly cosmetic.

Signed-off-by: Alexandru Ardelean <[email protected]>
  • Loading branch information
commodo committed Nov 17, 2020
1 parent 9cfbbd6 commit 9124188
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions ci/travis/run-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ adjust_kcflags_against_gcc() {

APT_LIST="make bc u-boot-tools flex bison libssl-dev"

if [ "$ARCH" == "arm64" ] ; then
if [ "$ARCH" = "arm64" ] ; then
if [ -z "$CROSS_COMPILE" ] ; then
CROSS_COMPILE=aarch64-linux-gnu-
export CROSS_COMPILE
Expand All @@ -103,7 +103,7 @@ if [ "$ARCH" == "arm64" ] ; then
APT_LIST="$APT_LIST gcc-aarch64-linux-gnu"
fi

if [ "$ARCH" == "arm" ] ; then
if [ "$ARCH" = "arm" ] ; then
if [ -z "$CROSS_COMPILE" ] ; then
CROSS_COMPILE=arm-linux-gnueabihf-
export CROSS_COMPILE
Expand Down Expand Up @@ -182,7 +182,7 @@ build_default() {
make ${DEFCONFIG}
make -j$NUM_JOBS $IMAGE UIMAGE_LOADADDR=0x8000

if [ "$CHECK_ALL_ADI_DRIVERS_HAVE_BEEN_BUILT" == "1" ] ; then
if [ "$CHECK_ALL_ADI_DRIVERS_HAVE_BEEN_BUILT" = "1" ] ; then
check_all_adi_files_have_been_built
fi

Expand Down Expand Up @@ -307,7 +307,7 @@ __update_git_ref() {
local ref="$1"
local local_ref="$2"
local depth
[ "$GIT_FETCH_DEPTH" == "disabled" ] || {
[ "$GIT_FETCH_DEPTH" = "disabled" ] || {
depth="--depth=${GIT_FETCH_DEPTH:-50}"
}
if [ -n "$local_ref" ] ; then
Expand Down Expand Up @@ -335,7 +335,7 @@ __handle_sync_with_main() {
return 1
}

if [ "$method" == "fast-forward" ] ; then
if [ "$method" = "fast-forward" ] ; then
git checkout FETCH_HEAD
git merge --ff-only ${ORIGIN}/${MAIN_BRANCH} || {
echo_red "Failed while syncing ${ORIGIN}/${MAIN_BRANCH} over '$dst_branch'"
Expand All @@ -345,9 +345,9 @@ __handle_sync_with_main() {
return 0
fi

if [ "$method" == "cherry-pick" ] ; then
if [ "$method" = "cherry-pick" ] ; then
local depth
if [ "$GIT_FETCH_DEPTH" == "disabled" ] ; then
if [ "$GIT_FETCH_DEPTH" = "disabled" ] ; then
depth=50
else
GIT_FETCH_DEPTH=${GIT_FETCH_DEPTH:-50}
Expand Down Expand Up @@ -418,9 +418,9 @@ build_sync_branches_with_main() {
build_sync_branches_with_main_travis() {
# make sure this is on the main branch, and not a PR
[ -n "$TRAVIS_PULL_REQUEST" ] || return 0
[ "$TRAVIS_PULL_REQUEST" == "false" ] || return 0
[ "$TRAVIS_BRANCH" == "${MAIN_BRANCH}" ] || return 0
[ "$TRAVIS_REPO_SLUG" == "analogdevicesinc/linux" ] || return 0
[ "$TRAVIS_PULL_REQUEST" = "false" ] || return 0
[ "$TRAVIS_BRANCH" = "${MAIN_BRANCH}" ] || return 0
[ "$TRAVIS_REPO_SLUG" = "analogdevicesinc/linux" ] || return 0

git remote set-url $ORIGIN "[email protected]:analogdevicesinc/linux.git"
openssl aes-256-cbc -d -in ci/travis/deploy_key.enc -out /tmp/deploy_key -base64 -K $encrypt_key -iv $encrypt_iv
Expand Down

0 comments on commit 9124188

Please sign in to comment.