pretendo-docker/update.sh
2024-05-11 17:08:48 -04:00

13 lines
434 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
git submodule foreach "git reset --hard" >/dev/null
git pull
exec "$git_base_dir/setup.sh"