possibilité d'annuler initialisation de dépôt
This commit is contained in:
parent
6523bdab17
commit
5968b299b7
8
wip/pman
8
wip/pman
@ -69,8 +69,12 @@ function init_repo_action() {
|
|||||||
local -a push_branches
|
local -a push_branches
|
||||||
|
|
||||||
if [ ! -f .pman.conf ]; then
|
if [ ! -f .pman.conf ]; then
|
||||||
cp "$ConfigFile" .pman.conf
|
ac_set_tmpfile config
|
||||||
"${EDITOR:-nano}" .pman.conf
|
cp "$ConfigFile" "$config"
|
||||||
|
"${EDITOR:-nano}" "$config"
|
||||||
|
[ -s "$config" ] || exit_with ewarn "Initialisation du dépôt annulée"
|
||||||
|
|
||||||
|
cp "$config" .pman.conf
|
||||||
if testdiff .pman.conf "$ConfigFile"; then
|
if testdiff .pman.conf "$ConfigFile"; then
|
||||||
ConfigFile="$(pwd)/.pman.conf"
|
ConfigFile="$(pwd)/.pman.conf"
|
||||||
load_config
|
load_config
|
||||||
|
Loading…
Reference in New Issue
Block a user