From 3d55e818991999655a5d058bd681f97010f8f00d Mon Sep 17 00:00:00 2001 From: Jephte Clain Date: Sat, 1 Mar 2025 14:00:55 +0400 Subject: [PATCH] cosmetic --- bin/pman | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/bin/pman b/bin/pman index 3a94c3a..06a6205 100755 --- a/bin/pman +++ b/bin/pman @@ -34,7 +34,7 @@ function show_action() { # Initialisation ################################################################################ -function _init_pman() { +function _init_config() { if [ ! -f .pman.conf ]; then ac_set_tmpfile config cp "$ConfigFile" "$config" @@ -63,7 +63,7 @@ function init_repo_action() { local -a push_branches - _init_pman || exit_with ewarn "Initialisation du dépôt annulée" + _init_config || exit_with ewarn "Initialisation du dépôt annulée" einfo "Création de la branche $MAIN" git symbolic-ref HEAD "refs/heads/$MAIN" @@ -77,12 +77,12 @@ function init_repo_action() { _push_branches } -function init_pman_action() { +function init_config_action() { [ -f .pman.conf ] || die "La configuration pman a déjà été initialisée" local -a push_branches - _init_pman || exit_with ewarn "Initialisation de la configuration annulée" + _init_config || exit_with ewarn "Initialisation de la configuration annulée" push_branches+=("$CurrentBranch") _push_branches @@ -190,7 +190,7 @@ function init_action() { local what="${1:-develop}"; shift case "$what" in init|repo|r) init_repo_action "$@";; - pman) init_pman_action "$@";; + config) init_config_action "$@";; main|m) git checkout -q "$MAIN";; develop|dev|d) init_develop_action "$@";; upstream|up|u) init_upstream_action "$@";;