Use double bracket test for consistency

This commit is contained in:
Marios Titas 2015-08-21 02:14:21 +01:00
parent 44070da3d7
commit c4e2b5f70a
5 changed files with 15 additions and 15 deletions

View File

@ -3,13 +3,13 @@
source /etc/init.d/functions.sh
source /etc/portage/util-functions.sh
repository_name=${1}
repository_path=${3}
repository_name="${1}"
repository_path="${3}"
# Number of jobs for egencache, default is number or processors.
parallel_jobs="$(nproc)"
if [ "${repository_name}" == "gentoo" ]; then
if [[ ${repository_name} == "gentoo" ]]; then
ebegin "Fetching pre-generated metadata cache for ${repository_name}"
rsync -aq rsync://rsync.gentoo.org/gentoo-portage/metadata/md5-cache/ "${repository_path}"/metadata/md5-cache/
eend $?

View File

@ -3,10 +3,10 @@
source /etc/init.d/functions.sh
source /etc/portage/util-functions.sh
repository_name=${1}
repository_path=${3}
repository_name="${1}"
repository_path="${3}"
if [ "${repository_name}" == "gentoo" ]; then
if [[ ${repository_name} == "gentoo" ]]; then
DTDDIR="${repository_path}"/metadata/dtd
ebegin "Updating DTDs"
if [[ -e ${DTDDIR} ]]; then

View File

@ -3,10 +3,10 @@
source /etc/init.d/functions.sh
source /etc/portage/util-functions.sh
repository_name=${1}
repository_path=${3}
repository_name="${1}"
repository_path="${3}"
if [ "${repository_name}" == "gentoo" ]; then
if [[ ${repository_name} == "gentoo" ]]; then
GLSADIR="${repository_path}"/metadata/glsa
ebegin "Updating GLSAs"
if [[ -e ${GLSADIR} ]]; then

View File

@ -3,10 +3,10 @@
source /etc/init.d/functions.sh
source /etc/portage/util-functions.sh
repository_name=${1}
repository_path=${3}
repository_name="${1}"
repository_path="${3}"
if [ "${repository_name}" == "gentoo" ]; then
if [[ ${repository_name} == "gentoo" ]]; then
ebegin "Updating herds.xml"
wget -q -O "${repository_path}"/metadata/herds.xml https://api.gentoo.org/packages/herds.xml
eend $?

View File

@ -3,10 +3,10 @@
source /etc/init.d/functions.sh
source /etc/portage/util-functions.sh
repository_name=${1}
repository_path=${3}
repository_name="${1}"
repository_path="${3}"
if [ "${repository_name}" == "gentoo" ]; then
if [[ ${repository_name} == "gentoo" ]]; then
NEWSDIR="${repository_path}"/metadata/news
ebegin "Updating news items"
if [[ -e ${NEWSDIR} ]]; then