1
0
Fork 0
forked from mirrors/openup

Remove Ksh'isms. There is no need for it, so use regular Bourne

Shell constructs.
This commit is contained in:
Antoine Jacoutot 2013-09-03 08:51:30 +02:00
commit 9d4f46f0a8

9
openup
View file

@ -101,8 +101,9 @@ pr_smallarrow() {
get_cert() { get_cert() {
local _CMD local _CMD
[[ -r /etc/ssl/pkgca.pem ]] && \ if [ -r /etc/ssl/pkgca.pem ]; then
split -p '^-----BEGIN CERTIFICATE-----$' /etc/ssl/pkgca.pem ${_TMPSPLITCERT} split -p '^-----BEGIN CERTIFICATE-----$' /etc/ssl/pkgca.pem ${_TMPSPLITCERT}
fi
for i in ${_TMPSPLITCERT}* ; do for i in ${_TMPSPLITCERT}* ; do
openssl x509 -noout -in $i -fingerprint 2>/dev/null | \ openssl x509 -noout -in $i -fingerprint 2>/dev/null | \
@ -214,15 +215,15 @@ done
[ $# = $(($OPTIND-1)) ] || usage [ $# = $(($OPTIND-1)) ] || usage
if [ -z "${checkmode}" ]; then if [ -z "${checkmode}" ]; then
[[ -z $noselfupdate ]] && update_self if [ -z $noselfupdate ]; then update_self; fi
[[ -z $nosig ]] && get_cert if [ -z $nosig ]; then get_cert; fi
update_binpatches update_binpatches
update_pkg update_pkg
else else
if [ "${nosig}" -o "${noselfupdate}" -o "${dryrun}" -a -z "${_RUN2}" ]; then if [ "${nosig}" -o "${noselfupdate}" -o "${dryrun}" -a -z "${_RUN2}" ]; then
usage usage
fi fi
[[ -z $noselfupdate ]] && update_self >/dev/null if [ -z $noselfupdate ]; then update_self >/dev/null; fi
check_vuxml check_vuxml
fi fi