From 13ce3ae56a68718ba9c5b86907da0266b711bdac Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Sun, 26 Mar 2017 22:16:59 +0200 Subject: bumpVersion: bugfix --- bumpVersion | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) (limited to 'bumpVersion') diff --git a/bumpVersion b/bumpVersion index 76f711776..399521e4b 100755 --- a/bumpVersion +++ b/bumpVersion @@ -47,16 +47,18 @@ done if [ $# -eq 0 ] then >&2 echo 'bumping versions of all packages ...' - "${me}" $( - ( - "${myDir}/checkVersions" --noUpdate | \ - cut -d: -f1 - echo "${nichtPakete}" - echo "${nichtPakete}" - ) | \ - sort | \ - uniq -u - ) + pkgs="$( + ( + "${myDir}/checkVersions" --noUpdate | \ + cut -d: -f1 + echo "${nichtPakete}" + echo "${nichtPakete}" + ) | \ + sort | \ + uniq -u + )" + [ -z "${pkgs}" ] && exit 0 + "${me}" ${pkgs} exit $? elif [ $# -gt 1 ] then -- cgit v1.2.3-70-g09d2