Skip to content

Commit 5bd4c6f

Browse files
committed
modified: scripts/bash/init/init.bash
1 parent df051ce commit 5bd4c6f

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

scripts/bash/init/init.bash

+7-6
Original file line numberDiff line numberDiff line change
@@ -51,14 +51,15 @@ if [[ ! -d "scripts/bash/shlibs" ]]
5151
then
5252
(git clone https://github.com/shlibs/shlibs.bash scripts/bash/shlibs) || (printf "\\nCANNOT CLONE MODULE: Continuing...\\n\\n")
5353
else
54-
if [[ -f .gitmodules ]]
55-
then
56-
if grep shlibs .gitmodules 1>/dev/null
54+
if [[ -f .gitmodules ]]
5755
then
58-
(git submodule update --init --recursive --remote scripts/bash/shlibs) || (printf "\\nCANNOT UPDATE ~/%s/scripts/bash/shlibs: Continuing...\\n\\n" "${RDR##*/}")
56+
if grep shlibs .gitmodules 1>/dev/null
57+
then
58+
(git submodule update --init --recursive --remote scripts/bash/shlibs) || (printf "\\nCANNOT UPDATE ~/%s/scripts/bash/shlibs: Continuing...\\n\\n" "${RDR##*/}")
59+
fi
60+
else
61+
(git submodule add https://github.com/shlibs/shlibs.bash scripts/bash/shlibs) || (printf "\\nCANNOT ADD MODULE: Continuing...\\n\\n")
5962
fi
60-
else
61-
(git submodule add https://github.com/shlibs/shlibs.bash scripts/bash/shlibs) || (printf "\\nCANNOT ADD MODULE: Continuing...\\n\\n")
6263
fi
6364

6465
. "$RDR/scripts/bash/shlibs/mod.bash"

0 commit comments

Comments
 (0)