diff --git a/scripts/admin_rpc_start.sh b/scripts/admin_rpc_start.sh index f9a8ef266..f6a638228 100755 --- a/scripts/admin_rpc_start.sh +++ b/scripts/admin_rpc_start.sh @@ -1,4 +1,5 @@ -#!/bin/bash +#!/usr/bin/env bash + # Copyright © 2023 OpenIM open source community. All rights reserved. # diff --git a/scripts/build_all_service.sh b/scripts/build_all_service.sh index 05df48590..40f6bb618 100755 --- a/scripts/build_all_service.sh +++ b/scripts/build_all_service.sh @@ -1,4 +1,5 @@ -#!/bin/bash +#!/usr/bin/env bash + # Copyright © 2023 OpenIM. All rights reserved. # diff --git a/scripts/build_docker.sh b/scripts/build_docker.sh index bd83ed286..fcd1452d9 100755 --- a/scripts/build_docker.sh +++ b/scripts/build_docker.sh @@ -1,4 +1,5 @@ -#!/bin/bash +#!/usr/bin/env bash + # Copyright © 2023 OpenIM open source community. All rights reserved. # diff --git a/scripts/check_all.sh b/scripts/check_all.sh index 4dd0a2e45..114e17c52 100755 --- a/scripts/check_all.sh +++ b/scripts/check_all.sh @@ -1,4 +1,5 @@ -#!/bin/bash +#!/usr/bin/env bash + # Copyright © 2023 OpenIM open source community. All rights reserved. # diff --git a/scripts/docker_start_all.sh b/scripts/docker_start_all.sh index 525216465..21b2c6f87 100755 --- a/scripts/docker_start_all.sh +++ b/scripts/docker_start_all.sh @@ -1,4 +1,5 @@ -#!/bin/bash +#!/usr/bin/env bash + # Copyright © 2023 OpenIM open source community. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); @@ -13,7 +14,8 @@ # See the License for the specific language governing permissions and # limitations under the License. -#!/bin/bash +#!/usr/bin/env bash + # Include shell font styles and some basic information SCRIPTS_ROOT=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd) diff --git a/scripts/function.sh b/scripts/function.sh index 5466a7c20..65209049a 100755 --- a/scripts/function.sh +++ b/scripts/function.sh @@ -1,4 +1,5 @@ -#!/bin/bash +#!/usr/bin/env bash + # Copyright © 2023 OpenIM open source community. All rights reserved. # diff --git a/scripts/githooks/commit-msg b/scripts/githooks/commit-msg index a6344b30e..c7b130cd8 100644 --- a/scripts/githooks/commit-msg +++ b/scripts/githooks/commit-msg @@ -1,4 +1,5 @@ -#!/bin/bash +#!/usr/bin/env bash + # Copyright © 2023 OpenIMSDK. # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/scripts/githooks/pre-commit b/scripts/githooks/pre-commit index 32ff47e45..9c44ecb05 100644 --- a/scripts/githooks/pre-commit +++ b/scripts/githooks/pre-commit @@ -1,4 +1,5 @@ -#!/bin/bash +#!/usr/bin/env bash + # Copyright © 2023 OpenIMSDK. # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/scripts/githooks/pre-push b/scripts/githooks/pre-push index 0a1a88515..297cadc73 100644 --- a/scripts/githooks/pre-push +++ b/scripts/githooks/pre-push @@ -1,4 +1,5 @@ -#!/bin/bash +#!/usr/bin/env bash + # Copyright © 2023 OpenIMSDK. # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/scripts/path_info.sh b/scripts/path_info.sh index 8ee2a75e6..014f2f6c1 100755 --- a/scripts/path_info.sh +++ b/scripts/path_info.sh @@ -1,4 +1,5 @@ -#!/bin/bash +#!/usr/bin/env bash + #Don't put the space between "=" diff --git a/scripts/start_all.sh b/scripts/start_all.sh index 9803aafd4..c8b1da294 100755 --- a/scripts/start_all.sh +++ b/scripts/start_all.sh @@ -1,4 +1,5 @@ -#!/bin/bash +#!/usr/bin/env bash + # Copyright © 2023 OpenIM open source community. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/scripts/stop_all.sh b/scripts/stop_all.sh index d4ea58966..eb7975eef 100755 --- a/scripts/stop_all.sh +++ b/scripts/stop_all.sh @@ -1,4 +1,5 @@ -#!/bin/bash +#!/usr/bin/env bash + # Copyright © 2023 OpenIM open source community. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/scripts/style_info.sh b/scripts/style_info.sh index b6b1f11ba..452240035 100755 --- a/scripts/style_info.sh +++ b/scripts/style_info.sh @@ -1,4 +1,5 @@ -#!/bin/bash +#!/usr/bin/env bash + # Copyright © 2023 OpenIM. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/test/common.sh b/test/common.sh index 6395941a6..5673bf3c2 100644 --- a/test/common.sh +++ b/test/common.sh @@ -1,4 +1,5 @@ -#!/bin/bash +#!/usr/bin/env bash + # Copyright © 2023 OpenIM. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License");