mirror of
https://github.com/mozilla/cipherscan.git
synced 2024-11-05 07:23:42 +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
|
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
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user