-
Notifications
You must be signed in to change notification settings - Fork 320
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #438 from analogdevicesinc/rgetz-fix-shellcheck-is…
…sues Codacy (shellcheck): Double quote to prevent globbing and word splitt…
- Loading branch information
Showing
6 changed files
with
45 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,13 +25,13 @@ set -x | |
|
||
##### Setup this script and get the current gh-pages branch. | ||
echo 'Setting up the script...' | ||
GH_REPO_NAME=$(echo $TRAVIS_REPO_SLUG | awk -F/ '{print $2}') | ||
GH_REPO_NAME=$(echo "$TRAVIS_REPO_SLUG" | awk -F/ '{print $2}') | ||
|
||
# Exit with nonzero exit code if anything fails | ||
set -e | ||
|
||
# by the time this script is run, we should have already made the docs | ||
cd $TRAVIS_BUILD_DIR/build | ||
cd "$TRAVIS_BUILD_DIR/build" | ||
#docs should be in the $TRAVIS_BUILD_DIR/build/html directory | ||
if [ ! -d "html" ] || [ ! -f "./html/v@LIBIIO_VERSION_MAJOR@.@LIBIIO_VERSION_MINOR@/@PROJECT_NAME@/index.html" ]; then | ||
echo '' >&2 | ||
|
@@ -48,7 +48,7 @@ fi | |
|
||
# Get the current gh-pages branch | ||
git clone -b gh-pages https://[email protected]/$TRAVIS_REPO_SLUG | ||
cd $GH_REPO_NAME | ||
cd "$GH_REPO_NAME" | ||
|
||
# Remove everything currently in the gh-pages branch. | ||
# GitHub is smart enough to know which files have changed and which files have | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters