f-1: fix: fix forgeten args #1

Signed-off-by: GnomeZworc <nicolas.boufidjeline@g3e.fr>
This commit is contained in:
GnomeZworc 2025-12-18 14:09:37 +01:00
commit 05b3827e3c
Signed by: nicolas.boufideline
GPG key ID: 4406BBBF8845D632

View file

@ -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}"
}