diff options
author | Markus Meier <maekke@gentoo.org> | 2010-10-15 00:39:22 +0200 |
---|---|---|
committer | Markus Meier <maekke@gentoo.org> | 2010-10-15 00:39:22 +0200 |
commit | 1bbcdf7b2daef3ea444b52d79a8542d33df0caf8 (patch) | |
tree | 18e3773d070b9fd74ecd8cf3f3eac830bc66e3fe /scripts | |
parent | only commit arches when needed, improve cvs up (diff) | |
download | maekke-1bbcdf7b2daef3ea444b52d79a8542d33df0caf8.tar.gz maekke-1bbcdf7b2daef3ea444b52d79a8542d33df0caf8.tar.bz2 maekke-1bbcdf7b2daef3ea444b52d79a8542d33df0caf8.zip |
tweak/style
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/keyword.sh | 6 |
1 files changed, 2 insertions, 4 deletions
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" |