Guest User

Shellcheck

a guest
May 19th, 2019
339
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.59 KB | None | 0 0
  1. skylake:cryptopp$ git checkout master -f && git pull
  2. Already on 'master'
  3. Your branch is up to date with 'origin/master'.
  4. remote: Enumerating objects: 5, done.
  5. remote: Counting objects: 100% (5/5), done.
  6. remote: Compressing objects: 100% (1/1), done.
  7. remote: Total 3 (delta 2), reused 3 (delta 2), pack-reused 0
  8. Unpacking objects: 100% (3/3), done.
  9. From https://github.com/weidai11/cryptopp
  10. d38e5a95..62d53e6c master -> origin/master
  11. Updating d38e5a95..62d53e6c
  12. Fast-forward
  13. sha.cpp | 6 +++---
  14. 1 file changed, 3 insertions(+), 3 deletions(-)
  15. skylake:cryptopp$ git checkout master -f && git pull
  16. Already on 'master'
  17. Your branch is up to date with 'origin/master'.
  18. remote: Enumerating objects: 5, done.
  19. remote: Counting objects: 100% (5/5), done.
  20. remote: Compressing objects: 100% (1/1), done.
  21. remote: Total 3 (delta 2), reused 3 (delta 2), pack-reused 0
  22. Unpacking objects: 100% (3/3), done.
  23. From https://github.com/weidai11/cryptopp
  24. 62d53e6c..e19a6152 master -> origin/master
  25. Updating 62d53e6c..e19a6152
  26. Fast-forward
  27. sha.cpp | 28 ++++++++++++++--------------
  28. 1 file changed, 14 insertions(+), 14 deletions(-)
  29. skylake:cryptopp$ git checkout master -f && git pull
  30. Already on 'master'
  31. Your branch is up to date with 'origin/master'.
  32. remote: Enumerating objects: 5, done.
  33. remote: Counting objects: 100% (5/5), done.
  34. remote: Compressing objects: 100% (1/1), done.
  35. remote: Total 3 (delta 2), reused 3 (delta 2), pack-reused 0
  36. Unpacking objects: 100% (3/3), done.
  37. From https://github.com/weidai11/cryptopp
  38. e19a6152..6528561c master -> origin/master
  39. Updating e19a6152..6528561c
  40. Fast-forward
  41. sha.cpp | 7 ++++---
  42. 1 file changed, 4 insertions(+), 3 deletions(-)
  43. skylake:cryptopp$ git checkout master -f && git pull
  44. Already on 'master'
  45. Your branch is up to date with 'origin/master'.
  46. Already up to date.
  47. skylake:cryptopp$ git checkout master -f && git pull
  48. Already on 'master'
  49. Your branch is up to date with 'origin/master'.
  50. remote: Enumerating objects: 5, done.
  51. remote: Counting objects: 100% (5/5), done.
  52. remote: Compressing objects: 100% (1/1), done.
  53. remote: Total 3 (delta 2), reused 3 (delta 2), pack-reused 0
  54. Unpacking objects: 100% (3/3), done.
  55. From https://github.com/weidai11/cryptopp
  56. 6528561c..e3788aac master -> origin/master
  57. Updating 6528561c..e3788aac
  58. Fast-forward
  59. sha.cpp | 2 +-
  60. 1 file changed, 1 insertion(+), 1 deletion(-)
  61. skylake:cryptopp$ git checkout master -f && git pull
  62. Already on 'master'
  63. Your branch is up to date with 'origin/master'.
  64. remote: Enumerating objects: 5, done.
  65. remote: Counting objects: 100% (5/5), done.
  66. remote: Compressing objects: 100% (1/1), done.
  67. remote: Total 3 (delta 2), reused 3 (delta 2), pack-reused 0
  68. Unpacking objects: 100% (3/3), done.
  69. From https://github.com/weidai11/cryptopp
  70. e3788aac..2c0455ed master -> origin/master
  71. Updating e3788aac..2c0455ed
  72. Fast-forward
  73. scrypt.cpp | 8 +++++++-
  74. 1 file changed, 7 insertions(+), 1 deletion(-)
  75. skylake:cryptopp$ cd ..
  76. skylake:~$ emacs test.sh
  77. skylake:~$ shellcheck test.sh
  78.  
  79. In test.sh line 1:
  80. find . -maxdepth 1 -iname '*.mp3' -exec sh -c 'curfname="{}";\
  81. ^-- SC2148: Tips depend on target shell and yours is unknown. Add a shebang.
  82. ^-- SC1078: Did you forget to close this single quoted string?
  83. ^-- SC2156: Injecting filenames is fragile and insecure. Use parameters.
  84. ^-- SC1004: This backslash+linefeed is literal. Break outside single quotes if you just want to break the line.
  85.  
  86.  
  87. In test.sh line 2:
  88. bitrate=`mp3info -r a -p "%f %r\n" "$curfname" | awk 'NF>1{print $NF}'`;\
  89. ^-- SC1079: This is actually an end quote, but due to next char it looks suspect.
  90. ^-- SC2026: This word is outside of quotes. Did you intend to 'nest '"'single quotes'"' instead'?
  91. ^------^ SC2227: Redirection applies to the find command itself. Rewrite to work per action (or move to end).
  92. ^-- SC1083: This { is literal. Check expression (missing ;/\n?) or quote it.
  93. ^-^ SC2086: Double quote to prevent globbing and word splitting.
  94. ^-- SC1083: This } is literal. Check expression (missing ;/\n?) or quote it.
  95. ^-- SC1004: This backslash+linefeed is literal. Break outside single quotes if you just want to break the line.
  96.  
  97.  
  98. In test.sh line 3:
  99. if [ $bitrate -lt 320 ];\
  100. ^-- SC1004: This backslash+linefeed is literal. Break outside single quotes if you just want to break the line.
  101.  
  102.  
  103. In test.sh line 4:
  104. then \
  105. ^-- SC1004: This backslash+linefeed is literal. Break outside single quotes if you just want to break the line.
  106.  
  107.  
  108. In test.sh line 5:
  109. echo $curfname has $bitrate bitrate; \
  110. ^-- SC1004: This backslash+linefeed is literal. Break outside single quotes if you just want to break the line.
  111.  
  112. For more information:
  113. https://www.shellcheck.net/wiki/SC2148 -- Tips depend on target shell and y...
  114. https://www.shellcheck.net/wiki/SC1078 -- Did you forget to close this sing...
  115. https://www.shellcheck.net/wiki/SC1083 -- This { is literal. Check expressi...
  116. skylake:~$
Advertisement
Add Comment
Please, Sign In to add comment