소스 검색

Update all helper scripts to '/usr/bin/env bash' shebang

Harald Glatt 6 년 전
부모
커밋
7dc0a05a71
4개의 변경된 파일4개의 추가작업 그리고 4개의 파일을 삭제
  1. 1 1
      helper-scripts/backup_and_restore.sh
  2. 1 1
      helper-scripts/mailcow-reset-admin.sh
  3. 1 1
      helper-scripts/nextcloud.sh
  4. 1 1
      helper-scripts/reset-learns.sh

+ 1 - 1
helper-scripts/backup_and_restore.sh

@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 
 if [[ ! -z ${MAILCOW_BACKUP_LOCATION} ]]; then
   BACKUP_LOCATION="${MAILCOW_BACKUP_LOCATION}"

+ 1 - 1
helper-scripts/mailcow-reset-admin.sh

@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 [[ -f mailcow.conf ]] && source mailcow.conf
 [[ -f ../mailcow.conf ]] && source ../mailcow.conf
 

+ 1 - 1
helper-scripts/nextcloud.sh

@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 
 for bin in curl dirmngr; do
   if [[ -z $(which ${bin}) ]]; then echo "Cannot find ${bin}, exiting..."; exit 1; fi

+ 1 - 1
helper-scripts/reset-learns.sh

@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 
 read -r -p "Are you sure you want to reset learned hashes from Rspamd (fuzzy, bayes, neural)? [y/N] " response
 response=${response,,}    # tolower