diff --git a/common/scripts/build_docker.sh b/common/scripts/build_docker.sh index 72bd750065..0c34ca131b 100755 --- a/common/scripts/build_docker.sh +++ b/common/scripts/build_docker.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash roots='./server/server ./server/front ./pods/account ./pods/backup' # ./products/tracker is temporary disabled diff --git a/common/scripts/docker_build.sh b/common/scripts/docker_build.sh index 04937ee3f9..586eb01750 100755 --- a/common/scripts/docker_build.sh +++ b/common/scripts/docker_build.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash version=$(git rev-parse HEAD) diff --git a/common/scripts/docker_tag.sh b/common/scripts/docker_tag.sh index 1149dccd09..a079241272 100755 --- a/common/scripts/docker_tag.sh +++ b/common/scripts/docker_tag.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash version=$(git describe --tags --abbrev=0) rev_version=$(git rev-parse HEAD) diff --git a/common/scripts/docker_tag_push.sh b/common/scripts/docker_tag_push.sh index 8b7bc94134..ecf1c13039 100755 --- a/common/scripts/docker_tag_push.sh +++ b/common/scripts/docker_tag_push.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash echo "Tagging release $1 with version $2" docker tag "$1" "$1:$2" docker push "$1:$2" \ No newline at end of file diff --git a/common/scripts/git_version.sh b/common/scripts/git_version.sh index 2b16ccdb9c..c79904bf6d 100755 --- a/common/scripts/git_version.sh +++ b/common/scripts/git_version.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash version=$(git describe --all --long) echo \"$version\" diff --git a/dev/tool/build.sh b/dev/tool/build.sh index b692181049..40e4687749 100755 --- a/dev/tool/build.sh +++ b/dev/tool/build.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright © 2020, 2021 Anticrm Platform Contributors. # Copyright © 2021 Hardcore Engineering Inc. diff --git a/pods/account/build.sh b/pods/account/build.sh index 0301e46926..9155353607 100755 --- a/pods/account/build.sh +++ b/pods/account/build.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright © 2020, 2021 Anticrm Platform Contributors. # Copyright © 2021 Hardcore Engineering Inc. diff --git a/pods/backup/build.sh b/pods/backup/build.sh index 3cb02b6924..c6f3ac4e30 100755 --- a/pods/backup/build.sh +++ b/pods/backup/build.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright © 2022 Hardcore Engineering Inc. # diff --git a/pods/collaborator/build.sh b/pods/collaborator/build.sh index 0301e46926..9155353607 100755 --- a/pods/collaborator/build.sh +++ b/pods/collaborator/build.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright © 2020, 2021 Anticrm Platform Contributors. # Copyright © 2021 Hardcore Engineering Inc. diff --git a/pods/front/build.sh b/pods/front/build.sh index b692181049..40e4687749 100755 --- a/pods/front/build.sh +++ b/pods/front/build.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright © 2020, 2021 Anticrm Platform Contributors. # Copyright © 2021 Hardcore Engineering Inc. diff --git a/pods/front/run.sh b/pods/front/run.sh index 2db411eff4..f8b58de905 100755 --- a/pods/front/run.sh +++ b/pods/front/run.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash export ACCOUNTS_URL=http://localhost:3333 export UPLOAD_URL=http://localhost:3333/files diff --git a/pods/server/build.sh b/pods/server/build.sh index b692181049..40e4687749 100755 --- a/pods/server/build.sh +++ b/pods/server/build.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright © 2020, 2021 Anticrm Platform Contributors. # Copyright © 2021 Hardcore Engineering Inc. diff --git a/server/account-service/build.sh b/server/account-service/build.sh index 0301e46926..9155353607 100755 --- a/server/account-service/build.sh +++ b/server/account-service/build.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright © 2020, 2021 Anticrm Platform Contributors. # Copyright © 2021 Hardcore Engineering Inc. diff --git a/server/collaborator/build.sh b/server/collaborator/build.sh index 0301e46926..9155353607 100755 --- a/server/collaborator/build.sh +++ b/server/collaborator/build.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright © 2020, 2021 Anticrm Platform Contributors. # Copyright © 2021 Hardcore Engineering Inc. diff --git a/server/front/build.sh b/server/front/build.sh index b692181049..40e4687749 100755 --- a/server/front/build.sh +++ b/server/front/build.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright © 2020, 2021 Anticrm Platform Contributors. # Copyright © 2021 Hardcore Engineering Inc. diff --git a/server/front/run.sh b/server/front/run.sh index 69a10dc590..11c733e2ea 100755 --- a/server/front/run.sh +++ b/server/front/run.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash export ACCOUNTS_URL=http://localhost:3333 export UPLOAD_URL=http://localhost:3333/files diff --git a/server/uws/uws.sh b/server/uws/uws.sh index 1982f2bb47..00fdbb935b 100755 --- a/server/uws/uws.sh +++ b/server/uws/uws.sh @@ -1,3 +1,5 @@ +#!/usr/bin/env bash + mkdir -p ./.build cd ./.build if ! test -f ./v20.43.0.zip; then diff --git a/tests/build-reload.sh b/tests/build-reload.sh index 357105e660..814d7dc666 100755 --- a/tests/build-reload.sh +++ b/tests/build-reload.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Restore workspace contents in mongo/elastic rush build diff --git a/tests/install-elastic-plugin-setup.sh b/tests/install-elastic-plugin-setup.sh index 29f3018cb0..1b89ea9067 100755 --- a/tests/install-elastic-plugin-setup.sh +++ b/tests/install-elastic-plugin-setup.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Usage # ./install-elastic-plugin-setup.sh sanity_elastic_1 diff --git a/tests/install-elastic-plugin.sh b/tests/install-elastic-plugin.sh index be983c3ae7..65f88aaa4c 100755 --- a/tests/install-elastic-plugin.sh +++ b/tests/install-elastic-plugin.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Usage # ./install-elastic-plugin.sh sanity_elastic_1 diff --git a/tests/prepare-tests.sh b/tests/prepare-tests.sh index 18e631a857..5698565bb2 100755 --- a/tests/prepare-tests.sh +++ b/tests/prepare-tests.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash docker compose -p sanity kill docker compose -p sanity down --volumes diff --git a/tests/prepare.sh b/tests/prepare.sh index 69a23e01e1..ffb7cefbaa 100755 --- a/tests/prepare.sh +++ b/tests/prepare.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash docker compose -p sanity kill docker compose -p sanity down --volumes diff --git a/tests/restore-workspace.sh b/tests/restore-workspace.sh index d7c5ae7b1c..812b2e0e67 100755 --- a/tests/restore-workspace.sh +++ b/tests/restore-workspace.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Restore workspace contents in mongo/elastic ./tool.sh backup-restore ./sanity-ws sanity-ws diff --git a/tests/tool.sh b/tests/tool.sh index 52caf42ef8..98f3447dfe 100755 --- a/tests/tool.sh +++ b/tests/tool.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash export MINIO_ACCESS_KEY=minioadmin export MINIO_SECRET_KEY=minioadmin