zulip/scripts/lib/cd_exec

9 lines
101 B
Bash
Executable File

#!/usr/bin/env bash
set -e
# cd into $1 and then exec the rest of the args
cd "$1"
shift
exec "$@"