mirror of
https://github.com/mozilla/cipherscan.git
synced 2024-12-25 04:03:41 +01:00
Merge pull request #149 from tomato42/bash-env-fix
make shell scripts respect PATH
This commit is contained in:
commit
b0548dff8e
2
cscan.sh
2
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
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!/bin/bash
|
||||
#!/usr/bin/env bash
|
||||
|
||||
if [[ ${1,,} == "-h" ]] || [[ ${1,,} == "-help" ]] || \
|
||||
[[ ${1,,} == "-help" ]] || [[ ${#} -lt 1 ]]; then
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!/bin/bash
|
||||
#!/usr/bin/env bash
|
||||
|
||||
if [[ ${1,,} == "-h" ]] || [[ ${1,,} == "-help" ]] || \
|
||||
[[ ${1,,} == "--help" ]]; then
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!/bin/bash
|
||||
#!/usr/bin/env bash
|
||||
|
||||
if [ ! -d ./ca_files ]; then
|
||||
echo "Directory with collected CA certificates missing!" >&2
|
||||
|
Loading…
Reference in New Issue
Block a user