summarylogtreecommitdiffstats
path: root/electron.sh
blob: d3b4a877a0d47a1fdec317a23fdb22bd00865b10 (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/usr/bin/env bash

# Find the latest available electronXX (or electronXXX...) binary
latest=$(compgen -c | grep -E '^electron[0-9]+$' | sort -V | tail -n1)

if [[ -z "$latest" ]]; then
    echo "No electronXX binary found." >&2
    exit 1
fi

exec "$latest" "$@"