mirror of
https://codeberg.org/privacy1st/arch
synced 2024-12-23 01:16:04 +01:00
minor
This commit is contained in:
parent
0562f6c627
commit
372f94d2bb
@ -24,10 +24,12 @@ git submodule init
|
||||
To update all submodules and print a list of those who received an update, run
|
||||
|
||||
```shell
|
||||
if stdout="$(git submodule update --remote)"; then
|
||||
if output="$(git submodule update --remote 2>&1)"; then
|
||||
# We capture only the part after "pkg" until the next "'" using sed
|
||||
# Source: https://unix.stackexchange.com/a/165590/315162
|
||||
sed 's|^Submodule path '\''pkg/\([^'\'']*\).*|\1|' <<< "$stdout"
|
||||
sed 's|^Submodule path '\''pkg/\([^'\'']*\).*|\1|' <<< "$output"
|
||||
else
|
||||
echo "$output"
|
||||
fi
|
||||
```
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user