madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

fix argument parsing master 0.4.4
authormartin f. krafft <madduck@madduck.net>
Thu, 19 Jun 2008 08:15:04 +0000 (10:15 +0200)
committermartin f. krafft <madduck@madduck.net>
Thu, 19 Jun 2008 08:15:04 +0000 (10:15 +0200)
arguments would not accumulate but override previous ones. this was
a silly bug. fixes Debian bug #486945.

shutdown.in

index cac4d6312fae78d93785b76626e10ec9f6833c0b..73d2c154742fa9a5edf52e5f260ab76329ced9bd 100755 (executable)
@@ -71,9 +71,9 @@ for arg in "$@"; do
     --) END_OF_ARGS=1;;
     *) 
       if [ $END_OF_ARGS -eq 0 ]; then
-        CMDARGS="${args:+$args }$arg"
+        CMDARGS="${CMDARGS:+$CMDARGS }$arg"
       else
-        SCRIPTARGS="${args:+$args }--arg $arg"
+        SCRIPTARGS="${SCRIPTARGS:+$SCRIPTARGS }--arg $arg"
       fi
       ;;
   esac