mirror of
https://github.com/Droid-Deck/DroidDeck.git
synced 2026-11-19 04:46:08 +00:00
20 lines
358 B
Bash
Executable File
20 lines
358 B
Bash
Executable File
#!/bin/bash
|
|
while [ $# -gt 0 ]; do
|
|
case $1 in
|
|
--classic) shift ;;
|
|
--base) shift 2 ;;
|
|
--*) shift ;;
|
|
*) break ;;
|
|
esac
|
|
done
|
|
tag=${1:?security tag}
|
|
shift
|
|
[ "${1##*/}" = snap-exec ] && shift
|
|
app=${1:-}
|
|
shift
|
|
name=${tag#snap.}
|
|
name=${name%%.*}
|
|
app=${app#*.}
|
|
[ -n "$app" ] || app=$name
|
|
exec /usr/local/bin/droiddeck-snap-run "$name" "$app" "$@"
|