From 5a59f6547b997236b4a81cbb4f2eda63a3606ecf Mon Sep 17 00:00:00 2001 From: TsMask <340112800@qq.com> Date: Wed, 15 Oct 2025 14:57:42 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E7=BB=9F=E4=B8=80=E8=84=9A=E6=9C=ACsheb?= =?UTF-8?q?ang=E4=B8=BA#!/usr/bin/env=20bash?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- build-docker.sh | 2 +- build.sh | 2 +- linux/usr/local/bin/omcd | 2 +- linux/usr/local/etc/omc/script/init_ne.sh | 2 +- linux/usr/local/etc/omc/script/omc_exec.sh | 2 +- linux/usr/local/etc/omc/script/setup.sh | 2 +- linux/usr/local/etc/omc/script/ssh_keys.sh | 2 +- pkg-docker.sh | 2 +- pkg-remove-chinese.sh | 2 +- pkg.sh | 2 +- pkg/docker/linux/usr/local/etc/omc/script/entrypoint.sh | 2 +- pkg/docker/linux/usr/local/etc/omc/script/postunpack.sh | 2 +- pkg/docker/tar/omc-docker.sh | 2 +- 13 files changed, 13 insertions(+), 13 deletions(-) diff --git a/build-docker.sh b/build-docker.sh index af5e0a8..434dc6d 100644 --- a/build-docker.sh +++ b/build-docker.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -e # Check if Docker is installed diff --git a/build.sh b/build.sh index c5ce45d..88d09ef 100755 --- a/build.sh +++ b/build.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -e # Default Version diff --git a/linux/usr/local/bin/omcd b/linux/usr/local/bin/omcd index 1b984a2..a10e209 100644 --- a/linux/usr/local/bin/omcd +++ b/linux/usr/local/bin/omcd @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash ServiceList="omc" BinDir="/usr/local/bin" diff --git a/linux/usr/local/etc/omc/script/init_ne.sh b/linux/usr/local/etc/omc/script/init_ne.sh index efb32db..aaa8f90 100644 --- a/linux/usr/local/etc/omc/script/init_ne.sh +++ b/linux/usr/local/etc/omc/script/init_ne.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash declare -A NE_LIST # Default network element number ne_id = 001 diff --git a/linux/usr/local/etc/omc/script/omc_exec.sh b/linux/usr/local/etc/omc/script/omc_exec.sh index a9bf588..f1f641a 100644 --- a/linux/usr/local/etc/omc/script/omc_exec.sh +++ b/linux/usr/local/etc/omc/script/omc_exec.sh @@ -1 +1 @@ -#!/bin/bash +#!/usr/bin/env bash diff --git a/linux/usr/local/etc/omc/script/setup.sh b/linux/usr/local/etc/omc/script/setup.sh index 161605f..3c36d91 100644 --- a/linux/usr/local/etc/omc/script/setup.sh +++ b/linux/usr/local/etc/omc/script/setup.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -e OMCBinFile=/usr/local/bin/omc diff --git a/linux/usr/local/etc/omc/script/ssh_keys.sh b/linux/usr/local/etc/omc/script/ssh_keys.sh index 2b2405b..14df80d 100644 --- a/linux/usr/local/etc/omc/script/ssh_keys.sh +++ b/linux/usr/local/etc/omc/script/ssh_keys.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Defining a list of SSH # ssh_user,ssh_ip diff --git a/pkg-docker.sh b/pkg-docker.sh index fc20f00..7a2b0fc 100644 --- a/pkg-docker.sh +++ b/pkg-docker.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -e # front-end Catalog diff --git a/pkg-remove-chinese.sh b/pkg-remove-chinese.sh index 6c31a3d..75e75d2 100644 --- a/pkg-remove-chinese.sh +++ b/pkg-remove-chinese.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -e # front-end Catalog diff --git a/pkg.sh b/pkg.sh index d9adbf1..e6dd93b 100644 --- a/pkg.sh +++ b/pkg.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -e # front-end Catalog diff --git a/pkg/docker/linux/usr/local/etc/omc/script/entrypoint.sh b/pkg/docker/linux/usr/local/etc/omc/script/entrypoint.sh index c2f3270..17ae21e 100644 --- a/pkg/docker/linux/usr/local/etc/omc/script/entrypoint.sh +++ b/pkg/docker/linux/usr/local/etc/omc/script/entrypoint.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # shellcheck disable=SC1091 set -o errexit diff --git a/pkg/docker/linux/usr/local/etc/omc/script/postunpack.sh b/pkg/docker/linux/usr/local/etc/omc/script/postunpack.sh index 7cb0744..3df48df 100644 --- a/pkg/docker/linux/usr/local/etc/omc/script/postunpack.sh +++ b/pkg/docker/linux/usr/local/etc/omc/script/postunpack.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # shellcheck disable=SC1091 set -o errexit diff --git a/pkg/docker/tar/omc-docker.sh b/pkg/docker/tar/omc-docker.sh index 5c063bd..3a6923e 100644 --- a/pkg/docker/tar/omc-docker.sh +++ b/pkg/docker/tar/omc-docker.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash OMC_CONTAINER_NAME="omc" MYSQL_CONTAINER_NAME="omc_mariadb"