]> git.rmz.io Git - dotfiles.git/blobdiff - bin/launch-bundle
nvim: add FPP copyright snippet
[dotfiles.git] / bin / launch-bundle
index 1c03dc93cf11e37e06808c9b571b267d98a46fa6..81b3b3bf583caeeee5d9c94beacb38e716d15979 100755 (executable)
@@ -1,7 +1,13 @@
 #!/bin/bash
 
 #!/bin/bash
 
-for TARGET in $HOME/.cinstall/launchers/${0##*/}*
+for TARGET in $HOME/.cinstall/launchers/${0##*/}-[0-9]*
     do
         USE_TARGET=$TARGET
     done
     do
         USE_TARGET=$TARGET
     done
-[ -x "$USE_TARGET" ] && $USE_TARGET || echo "Could not find ${0##*/} bundle"
+if [[ -x "$USE_TARGET" ]]; then
+   $USE_TARGET "${@}"
+   arch=$(uname -m)
+   ln -sf $HOME/.cinstall/icons/${USE_TARGET##*/}-${arch}.png $HOME/.cinstall/icons/${0##*/}.png 
+else
+     echo "Could not find ${0##*/} bundle"
+fi