Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 2493

General discussion • Re: git submodule update –init command not working

$
0
0
I'm trying to host a small vanilla minecraft bedrock serverhttps://www.makeuseof.com/how-to-instal ... erry%20Pi., but the command said it can't be found.

[1] 2172
bash: ndash: command not found
bash: init: command not found

anyway to fix this?

If you want further questions just comment and I'll respond to it


The command as published by the makeuseof blog is

Code:

git submodule update –init

Frankly, that's nonsense.

I suspect the blog-production software has 'mangled' a correct git command and generated garbage instead and no-one proof-read the resulting article.


This is untried, but perhaps the command should be -

Code:

git submodule update --init

See the definitive git documentation for a description of the git submodule command. https://git-scm.com/book/en/v2/Git-Tools-Submodules



(And having just checked the Comments under the blog post in question I see that the same question was asked and answered there 10 months ago!)






{Edit: Added later - }
Now tested, under 64-bit RasPiOS Bookworm running on an RPi[5] board.

Checks out without error, as anticipated:

Code:

david@rp54bw64full0512:~/Support/Zastonishpro $ git clone https://github.com/CloudburstMC/NukkitCloning into 'Nukkit'...remote: Enumerating objects: 67889, done.remote: Counting objects: 100% (2996/2996), done.remote: Compressing objects: 100% (2074/2074), done.remote: Total 67889 (delta 1281), reused 1960 (delta 807), pack-reused 64893Receiving objects: 100% (67889/67889), 26.78 MiB | 1.99 MiB/s, done.Resolving deltas: 100% (40501/40501), done.david@rp54bw64full0512:~/Support/Zastonishpro $ cd Nukkit/david@rp54bw64full0512:~/Support/Zastonishpro/Nukkit $ git submodule update --initSubmodule 'src/main/resources/lang' (https://github.com/NukkitX/Languages.git) registered for path 'src/main/resources/lang'Cloning into '/home/david/Support/Zastonishpro/Nukkit/src/main/resources/lang'...Submodule path 'src/main/resources/lang': checked out 'bd94ef3f78b5401e41c6614cae1787ea24250996'david@rp54bw64full0512:~/Support/Zastonishpro/Nukkit $ 

I note with a smile that the section of the Blog you refer to is headed -
You’re not ready to install the server.
Well, that's honest at least...

Statistics: Posted by B.Goode — Fri Apr 12, 2024 6:58 am



Viewing all articles
Browse latest Browse all 2493

Trending Articles