mirror of
https://github.com/runkids/skillshare.git
synced 2026-11-18 18:04:17 +00:00
19 lines
278 B
Bash
Executable File
19 lines
278 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
|
|
if [ $# -lt 1 ]; then
|
|
echo "Usage: ssuse <name> [-- <command> ...]" >&2
|
|
exit 1
|
|
fi
|
|
|
|
name="$1"
|
|
shift || true
|
|
if [ "${1:-}" = "--" ]; then
|
|
shift
|
|
fi
|
|
|
|
if [ "$#" -gt 0 ]; then
|
|
exec ssenv enter "$name" -- "$@"
|
|
fi
|
|
exec ssenv enter "$name"
|