pretendo-docker/scripts/make-pnid-dev.sh
2024-01-14 11:30:25 -05:00

15 lines
364 B
Bash
Executable File

#! /bin/sh
set -eu
git_base=$(git rev-parse --show-toplevel)
. "$git_base/scripts/.function-lib.sh"
update_pnid_access_level_script=$(cat "$git_base/scripts/run-in-container/make-pnid-dev.js")
if [ "$#" -lt 1 ]; then
echo "Usage: $0 <PNID to give developer access>"
exit 1
fi
docker compose exec account node -e "$update_pnid_access_level_script" "$1"