]> git.rmz.io Git - dotfiles.git/commitdiff
create link for icons too
authorSamir Benmendil <samir.benmendil@gmail.com>
Thu, 31 Jan 2013 18:02:44 +0000 (19:02 +0100)
committerSamir Benmendil <samir.benmendil@gmail.com>
Thu, 31 Jan 2013 18:04:19 +0000 (19:04 +0100)
bin/launch-bundle

index 156365fcb844b0ef7f8ebe8190159241c9dc991d..81b3b3bf583caeeee5d9c94beacb38e716d15979 100755 (executable)
@@ -4,4 +4,10 @@ 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