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