diff options
author | Erich Eckner <git@eckner.net> | 2016-04-18 08:44:30 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2016-04-18 08:44:30 +0200 |
commit | 6cf0386ee65d55ee584b00d4987ca8d8d9664f5e (patch) | |
tree | f8de546b9300220d05cb6e31b08f19772d55f9b5 | |
parent | c59ac3708166c2b3c9d186b498127062376b3f56 (diff) | |
download | archlinuxewe.git.save-6cf0386ee65d55ee584b00d4987ca8d8d9664f5e.tar.xz |
Optionen an alle Subprozesse weiterreichen
-rwxr-xr-x | checkVersions | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/checkVersions b/checkVersions index e5f01d8f..1f73039a 100755 --- a/checkVersions +++ b/checkVersions @@ -17,17 +17,20 @@ usage() { eval set -- "$(getopt -o fj: --long force,jobs: -n "$(basename "$0")" -- "$@" || echo "usage")" args=("$@") +optArgs=() while true do case $1 in -f|--force) force=true + optArgs[${#optArgs[@]}]="-f" shift ;; -j|--jobs) shift jobs="$1" + optArgs[${#optArgs[@]}]="-j $1" shift ;; --) @@ -258,14 +261,15 @@ then if [ ! "${pkgver}" == "${remVer}" ] then - echo "$1: ${pkgname} ist neuer verfügbar: ${remVer} vs. ${pkgver}" + echo "$1: ${pkgname}: ${remVer} vs. ${pkgver}" | \ + sed "s|^\([^:]\+\): \1:|\1:|" fi elif ${versionenErmitteln} then echo "$@" | \ tr " " "\n" | \ - parallel -j${jobs} $0 {} \; + parallel -j${jobs} "${me}" "${optArgs[@]}" {} \; exit $? else |