From: Philip H <47042125+pheiduck@users.noreply.github.com> Date: Tue, 22 Mar 2022 22:13:41 +0000 (+0100) Subject: firefox-db2pem.sh: make the shell script safer X-Git-Tag: curl-7_83_0~111 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=98b40c61bcbc101b265d1d4d28abf8d536688738;p=thirdparty%2Fcurl.git firefox-db2pem.sh: make the shell script safer Reported by lift Closes #8616 --- diff --git a/lib/firefox-db2pem.sh b/lib/firefox-db2pem.sh index 629a2e8d64..c317ae7e10 100644 --- a/lib/firefox-db2pem.sh +++ b/lib/firefox-db2pem.sh @@ -6,7 +6,7 @@ # * | (__| |_| | _ <| |___ # * \___|\___/|_| \_\_____| # * -# * Copyright (C) 1998 - 2020, Daniel Stenberg, , et al. +# * Copyright (C) 1998 - 2022, Daniel Stenberg, , et al. # * # * This software is licensed as described in the file COPYING, which # * you should have received as part of this distribution. The terms @@ -24,14 +24,14 @@ # It extracts all ca certs it finds in the local Firefox database and converts # them all into PEM format. # -db=`ls -1d $HOME/.mozilla/firefox/*default*` +db=$(ls -1d $HOME/.mozilla/firefox/*default*) out=$1 if test -z "$out"; then out="ca-bundle.crt" # use a sensible default fi -currentdate=`date` +currentdate=$(date) cat >$out <$out <> $out