Skip to content
Snippets Groups Projects
Commit ef7a9553 authored by nimrod's avatar nimrod
Browse files

- Fix issues found with shellcheck.

parent d7bb75ce
No related branches found
No related tags found
No related merge requests found
......@@ -13,16 +13,17 @@ fetch_submodules () {
# We read the submodules from .gitmodules
git config -f .gitmodules --get-regexp '^submodule\..*\.path$' |
while read path_key path
while read -r path_key path
do
rm -fr $path
url_key=`echo $path_key | sed 's/\.path/.url/'`
url=`git config -f .gitmodules --get "$url_key"`
git submodule add $url $path
rm -fr "$path"
url_key="$(echo "$path_key" | sed 's/\.path/.url/')"
url="$(git config -f .gitmodules --get "$url_key")"
git submodule add "$url" "$path"
done
}
mkdir -p /var/tmp/gitreceive
(
cd /var/tmp/gitreceive
echo '----> Unpacking ...'
tar -xf -
......@@ -37,6 +38,6 @@ then
./receiver
fi
echo '----> Cleanup ...'
cd -
)
rm -rf /var/tmp/gitreceive
echo '----> OK.'
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment