From 269aced6f02a0027e8f4e87b5931c47e70084be4 Mon Sep 17 00:00:00 2001 From: KongQun Yang Date: Thu, 12 Mar 2015 15:35:13 -0700 Subject: [PATCH] Fix find_curl_ca_bundle shell script break in old systems Change-Id: Ief20f4d29a4f878cf70f90deae119f01eb3e7558 --- .../third_party/curl/config/linux/find_curl_ca_bundle.sh | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/packager/third_party/curl/config/linux/find_curl_ca_bundle.sh b/packager/third_party/curl/config/linux/find_curl_ca_bundle.sh index af0d4a74a4..c3e370480d 100755 --- a/packager/third_party/curl/config/linux/find_curl_ca_bundle.sh +++ b/packager/third_party/curl/config/linux/find_curl_ca_bundle.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash -e # 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/share/ssl/certs/ca-bundle.crt') -for path in "${paths[@]}" -do - if test -f "$path" - then +for path in "${paths[@]}"; do + if test -f "$path"; then echo "$path" exit 0 fi