Skip to content

Commit

Permalink
shellcheck: Fix warnings about globbing and word splitting
Browse files Browse the repository at this point in the history
Signed-off-by: Marijn Suijten <[email protected]>
  • Loading branch information
MarijnS95 committed May 29, 2020
1 parent 015018a commit 836eba4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions repo_update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@ apply_gerrit_cl_commit() {
_ref=$1
_commit=$2
# Check whether the commit is already stored
if [ -z $(git rev-parse --quiet --verify $_commit^{commit}) ]
if [ -z "$(git rev-parse --quiet --verify "$_commit^{commit}")" ]
# If not, fetch the ref from $LINK
then
git fetch $LINK $_ref
git fetch "$LINK" "$_ref"
_fetched=$(git rev-parse FETCH_HEAD)
if [ "$_fetched" != "$_commit" ]
then
Expand All @@ -44,12 +44,12 @@ apply_gerrit_cl_commit() {
fi
git cherry-pick FETCH_HEAD
else
git cherry-pick $_commit
git cherry-pick "$_commit"
fi
}

if [ "$SKIP_SYNC" != "TRUE" ]; then
pushd $ANDROOT/.repo/local_manifests
pushd "$ANDROOT/.repo/local_manifests"
git pull
popd

Expand Down

0 comments on commit 836eba4

Please sign in to comment.