diff --git a/scripts/deploy.sh b/scripts/deploy.sh index 9fcd1dd..3345488 100644 --- a/scripts/deploy.sh +++ b/scripts/deploy.sh @@ -24,6 +24,7 @@ check_latest_script () { } main () { + echo "$@" [[ -f ./libs/shflags ]] && . ./libs/shflags || eval "$(curl --silent https://git.g3e.fr/H6N/tools/raw/branch/main/libs/shflags)" DEFINE_boolean 'dryrun' false 'Enable dry-run mode' 'd' @@ -31,6 +32,9 @@ main () { DEFINE_string 'repo_path' 'syonad/two/' 'Path of repository' 'r' DEFINE_string 'branch' 'main/' 'Branch name' 'b' + FLAGS "$@" || exit $? + eval set -- "${FLAGS_ARGV}" + check_latest_script "${FLAGS_git_server}${FLAGS_repo_path}raw/branch/${FLAGS_branch}${SCRIPT_PATH}" "${0}" }