2
0
mirror of https://github.com/mozilla/cipherscan.git synced 2024-11-22 06:13:42 +01:00

Merge pull request #149 from tomato42/bash-env-fix

make shell scripts respect PATH
This commit is contained in:
Julien Vehent [:ulfr] 2018-05-19 19:56:27 -04:00 committed by GitHub
commit b0548dff8e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 4 additions and 4 deletions

View File

@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
pushd "$(dirname ${BASH_SOURCE[0]})" > /dev/null pushd "$(dirname ${BASH_SOURCE[0]})" > /dev/null
if [ ! -d ./tlslite ]; then if [ ! -d ./tlslite ]; then
echo -e "\n${BASH_SOURCE[0]}: tlslite-ng not found, downloading..." 1>&2 echo -e "\n${BASH_SOURCE[0]}: tlslite-ng not found, downloading..." 1>&2

View File

@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
if [[ ${1,,} == "-h" ]] || [[ ${1,,} == "-help" ]] || \ if [[ ${1,,} == "-h" ]] || [[ ${1,,} == "-help" ]] || \
[[ ${1,,} == "-help" ]] || [[ ${#} -lt 1 ]]; then [[ ${1,,} == "-help" ]] || [[ ${#} -lt 1 ]]; then

View File

@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
if [[ ${1,,} == "-h" ]] || [[ ${1,,} == "-help" ]] || \ if [[ ${1,,} == "-h" ]] || [[ ${1,,} == "-help" ]] || \
[[ ${1,,} == "--help" ]]; then [[ ${1,,} == "--help" ]]; then

View File

@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
if [ ! -d ./ca_files ]; then if [ ! -d ./ca_files ]; then
echo "Directory with collected CA certificates missing!" >&2 echo "Directory with collected CA certificates missing!" >&2