Skip to content

Instantly share code, notes, and snippets.

@aikar aikar/jbtb-open.sh
Last active Sep 10, 2019

Embed
What would you like to do?
#!/bin/bash
if [ $# -lt 3 ]; then
echo "$0 <app> <channel> <binpath> [*args]"
exit 1
fi
app=$1
channel=$2
binpath=$3
shift
shift
shift
base=~/.local/share/JetBrains/Toolbox/apps/$app
apppath=$base/$channel
ver=$(/bin/ls "$apppath" | tail -n 1)
if [ -z "$ver" ]; then
echo "Can not find $app - $channel"
exit 1
fi
$apppath/$ver/bin/${binpath}.sh "$@"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.