Skip to content

Commit

Permalink
modified: scripts/bash/init/init.bash
Browse files Browse the repository at this point in the history
  • Loading branch information
SDRausty committed Sep 29, 2019
1 parent 7323e7e commit 296d2ff
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions scripts/bash/init/init.bash
Original file line number Diff line number Diff line change
Expand Up @@ -47,14 +47,20 @@ export SRDR="${RDR##*/}" # search: string manipulation site:www.tldp.org
export JDR="$RDR/sources/$JID"
cd "$RDR"
(git pull) || (printf "\\nCANNOT UPDATE ~/%s: Continuing...\\n\\n" "${RDR##*/}")
if [[ -f .gitmodules ]]
if [[ ! -d "scripts/bash/shlibs" ]]
then
if grep shlibs .gitmodules 1>/dev/null
(git clone https://github.com/shlibs/shlibs.bash scripts/bash/shlibs) || (printf "\\nCANNOT CLONE MODULE: Continuing...\\n\\n")
else
if [[ -f .gitmodules ]]
then
(git submodule update --init --recursive --remote scripts/bash/shlibs) || (printf "\\nCANNOT UPDATE ~/%s/scripts/bash/shlibs: Continuing...\\n\\n" "${RDR##*/}")
(git submodule add https://github.com/shlibs/shlibs.bash scripts/bash/shlibs) || (printf "\\nCANNOT ADD MODULE: Continuing...\\n\\n")
if grep shlibs .gitmodules 1>/dev/null
then
(git submodule update --init --recursive --remote scripts/bash/shlibs) || (printf "\\nCANNOT UPDATE ~/%s/scripts/bash/shlibs: Continuing...\\n\\n" "${RDR##*/}")
fi
else
(git submodule add https://github.com/shlibs/shlibs.bash scripts/bash/shlibs) || (printf "\\nCANNOT ADD MODULE: Continuing...\\n\\n")
fi
else
(git submodule add https://github.com/shlibs/shlibs.bash scripts/bash/shlibs) || (printf "\\nCANNOT ADD MODULE: Continuing...\\n\\n")
fi

. "$RDR/scripts/bash/shlibs/mod.bash"
Expand Down

0 comments on commit 296d2ff

Please sign in to comment.