mirror of
https://github.com/Droid-Deck/DroidDeck.git
synced 2026-11-13 03:51:10 +00:00
16 lines
324 B
Bash
Executable File
16 lines
324 B
Bash
Executable File
#!/bin/bash
|
|
[ "${1:-}" = run ] || exec /usr/bin/snap "$@"
|
|
shift
|
|
while [ $# -gt 0 ]; do
|
|
case $1 in
|
|
--) shift; break ;;
|
|
-*) shift ;;
|
|
*) break ;;
|
|
esac
|
|
done
|
|
target=${1:?usage: snap run <snap>[.<app>] [args...]}
|
|
shift
|
|
name=${target%%.*}
|
|
app=${target#*.}
|
|
exec /usr/local/bin/droiddeck-snap-run "$name" "$app" "$@"
|