From 31761fa7b2344509ee5938875f06a0189fe02860 Mon Sep 17 00:00:00 2001 From: Hubert Kario Date: Sun, 13 May 2018 19:33:05 +0200 Subject: [PATCH] make shell scripts respect PATH use the bash from PATH, not from /bin fixes #141 --- cscan.sh | 2 +- top1m/make_ca_files.sh | 2 +- top1m/make_ca_trusted.sh | 2 +- top1m/process-certificate-statistics.sh | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/cscan.sh b/cscan.sh index 2d2eb86..6ba4b76 100755 --- a/cscan.sh +++ b/cscan.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash pushd "$(dirname ${BASH_SOURCE[0]})" > /dev/null if [ ! -d ./tlslite ]; then echo -e "\n${BASH_SOURCE[0]}: tlslite-ng not found, downloading..." 1>&2 diff --git a/top1m/make_ca_files.sh b/top1m/make_ca_files.sh index a536f90..528da65 100755 --- a/top1m/make_ca_files.sh +++ b/top1m/make_ca_files.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash if [[ ${1,,} == "-h" ]] || [[ ${1,,} == "-help" ]] || \ [[ ${1,,} == "-help" ]] || [[ ${#} -lt 1 ]]; then diff --git a/top1m/make_ca_trusted.sh b/top1m/make_ca_trusted.sh index e5df79e..5a299d1 100755 --- a/top1m/make_ca_trusted.sh +++ b/top1m/make_ca_trusted.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash if [[ ${1,,} == "-h" ]] || [[ ${1,,} == "-help" ]] || \ [[ ${1,,} == "--help" ]]; then diff --git a/top1m/process-certificate-statistics.sh b/top1m/process-certificate-statistics.sh index dbf01e9..c7d7109 100755 --- a/top1m/process-certificate-statistics.sh +++ b/top1m/process-certificate-statistics.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash if [ ! -d ./ca_files ]; then echo "Directory with collected CA certificates missing!" >&2