#!/bin/bash for TARGET in $HOME/.cinstall/launchers/${0##*/}-[0-9]* do USE_TARGET=$TARGET done 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