]> git.rmz.io Git - dotfiles.git/commitdiff
fix bundle calls
authorSamir Benmendil <samir.benmendil@gmail.com>
Thu, 31 Jan 2013 17:45:05 +0000 (18:45 +0100)
committerSamir Benmendil <samir.benmendil@gmail.com>
Thu, 31 Jan 2013 18:04:19 +0000 (19:04 +0100)
bin/launch-bundle

index 1c03dc93cf11e37e06808c9b571b267d98a46fa6..156365fcb844b0ef7f8ebe8190159241c9dc991d 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/bash
 
-for TARGET in $HOME/.cinstall/launchers/${0##*/}*
+for TARGET in $HOME/.cinstall/launchers/${0##*/}-[0-9]*
     do
         USE_TARGET=$TARGET
     done
-[ -x "$USE_TARGET" ] && $USE_TARGET || echo "Could not find ${0##*/} bundle"
+[ -x "$USE_TARGET" ] && $USE_TARGET "${@}" || echo "Could not find ${0##*/} bundle"