Skip to content

Commit

Permalink
Stop Shellchecking gdal-bash-completions.sh (OSGeo#657)
Browse files Browse the repository at this point in the history
  • Loading branch information
bje- authored and rouault committed May 30, 2018
1 parent 7ebf00d commit c0a7189
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion gdal/ci/travis/trusty_32bit/script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ mv autotest/gcore/vsigs.py autotest/gcore/vsigs.py.disabled
sudo i386 chroot "$chroot" sh -c "cd $PWD/autotest && python run_all.py"

# Run Shellcheck
shellcheck -e SC2086,SC2046 $(find $PWD/gdal -name '*.sh' -a -not -name ltmain.sh -a -not -name gdal-bash-completion.sh)
shellcheck -e SC2086,SC2046 $(find $PWD/gdal -name '*.sh' -a -not -name ltmain.sh)
1 change: 1 addition & 0 deletions gdal/scripts/completionFinder.py
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,7 @@ def main(argv):

outFile = argv[1]
of = open(outFile, 'w')
of.write("# shellcheck disable=SC2148\n")
of.write("# File auto-generated by completionFinder.py, do not modify manually\n")
of.write("""
function_exists() {
Expand Down
1 change: 1 addition & 0 deletions gdal/scripts/gdal-bash-completion.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# shellcheck disable=SC2148
# File auto-generated by completionFinder.py, do not modify manually

function_exists() {
Expand Down

0 comments on commit c0a7189

Please sign in to comment.