diff options
author | Sergey Poznyakoff <gray@gnu.org> | 2018-07-25 20:47:17 +0300 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org> | 2018-07-25 20:47:17 +0300 |
commit | bfa920104f9d095ca9991f27c07c7d2d348b9a7f (patch) | |
tree | 9ae55ccd8a2174e449311f7077dc786a9f349cab /bootstrap | |
parent | 4d5d0a182367506e6811498ec33d569e2ec0ae1a (diff) | |
download | dico-bfa920104f9d095ca9991f27c07c7d2d348b9a7f.tar.gz dico-bfa920104f9d095ca9991f27c07c7d2d348b9a7f.tar.bz2 |
Minor improvement in bootstrap
Diffstat (limited to 'bootstrap')
-rwxr-xr-x | bootstrap | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -905,15 +905,16 @@ if ($addmod) { reconf(); } elsif ($#ARGV >= 0) { abend(EX_USAGE, "too many arguments; did you mean --new?"); -} else { - abend(EX_USAGE, "this does not look like a clone of the Dico repository; try $progname --help for more info") - unless -d '.git'; - +} elsif (-d '.git') { error("Initializing submodules", fd => \*STDOUT) if $verbose; run('git submodule init'); run('git submodule update'); modproc(); gnulib_init(); +} else { + error("this does not look like a clone of the Dico repository"); + error("did you mean --modules?"); + abend(EX_USAGE, "If not, try $progname --help for detailed info"); } exit($status); |