From 1bbcdf7b2daef3ea444b52d79a8542d33df0caf8 Mon Sep 17 00:00:00 2001 From: Markus Meier Date: Fri, 15 Oct 2010 00:39:22 +0200 Subject: tweak/style --- scripts/keyword.sh | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'scripts') diff --git a/scripts/keyword.sh b/scripts/keyword.sh index 9735aef..a99db72 100755 --- a/scripts/keyword.sh +++ b/scripts/keyword.sh @@ -61,9 +61,7 @@ for pkg in ${pkgs} ; do pn=${qatom[1]} version=${qatom[2]} revision=${qatom[3]} - if [ -n "${revision}" ] ; then - version="${version}-${revision}" - fi + [[ -n "${revision}" ]] && version="${version}-${revision}" cd "${REPODIR}/${category}/${pn}" || die "package ${category}/${pn} not found" cvs up -C || die "cvs up failed" @@ -86,7 +84,7 @@ for pkg in ${pkgs} ; do done # commit message - if [ ${arches:0:1} == "~" ] ; then + if [[ ${arches:0:1} == "~" ]] ; then msg="add ${arches// //}" else msg="${tmparches// //} stable" -- cgit v1.2.3-65-gdbad