pretendo-docker/update.sh
Matthew Lopez 35e64a1044
Create verbose mode for all scripts and reduce default output
Man, dealing with passing arguments through multiple programs correctly is annoying. Tip: don't use eval, use "$@" instead.
2024-05-19 17:26:37 -04:00

13 lines
433 B
Bash
Executable File

#!/usr/bin/env bash
# shellcheck source=./scripts/internal/framework.sh
source "$(dirname "$(realpath "$0")")/scripts/internal/framework.sh"
set_description "This updates the Pretendo environment to the latest version."
parse_arguments "$@"
# Without resetting, Git may have merge conflicts in the submodules because of the applied patches
run_verbose git submodule foreach git reset --hard
git pull
exec "$git_base_dir/setup.sh"