Fix find_curl_ca_bundle shell script break in old systems
Change-Id: Ief20f4d29a4f878cf70f90deae119f01eb3e7558
This commit is contained in:
parent
63792f088e
commit
269aced6f0
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/sh
|
#!/bin/bash -e
|
||||||
|
|
||||||
# Copyright 2015 Google Inc. All rights reserved.
|
# Copyright 2015 Google Inc. All rights reserved.
|
||||||
#
|
#
|
||||||
|
@ -14,10 +14,8 @@ paths=('/etc/pki/tls/certs/ca-bundle.crt'
|
||||||
'/usr/local/share/certs/ca-root.crt'
|
'/usr/local/share/certs/ca-root.crt'
|
||||||
'/usr/share/ssl/certs/ca-bundle.crt')
|
'/usr/share/ssl/certs/ca-bundle.crt')
|
||||||
|
|
||||||
for path in "${paths[@]}"
|
for path in "${paths[@]}"; do
|
||||||
do
|
if test -f "$path"; then
|
||||||
if test -f "$path"
|
|
||||||
then
|
|
||||||
echo "$path"
|
echo "$path"
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue