Permalink
Browse files

Fix shellcheck warnings in .copr/prep.sh script

  • Loading branch information...
siteshwar committed Aug 27, 2018
1 parent 56cfa0a commit 51baea75200960205f2bd19324fdd3cf49487b98
Showing with 4 additions and 4 deletions.
  1. +3 −3 .copr/prep.sh
  2. +1 −1 bin/shellcheck
View
@@ -15,13 +15,13 @@ git fetch --tags
VCS_VERSION=$(git describe --always --dirty --tags)
# Extract development version number i.e. 2017.0.0
DEVEL_VERSION_NUM=$(echo $VCS_VERSION | cut -d'-' -f1)
DEVEL_VERSION_NUM=$(echo "$VCS_VERSION" | cut -d'-' -f1)
# 1535
COMMIT_NUM=$(echo $VCS_VERSION | cut -d'-' -f3)
COMMIT_NUM=$(echo "$VCS_VERSION" | cut -d'-' -f3)
# g7c33a1cd
SHORT_COMMIT=$(echo $VCS_VERSION | cut -d'-' -f4)
SHORT_COMMIT=$(echo "$VCS_VERSION" | cut -d'-' -f4)
COMMIT=$(git rev-parse HEAD)
View
@@ -1,4 +1,4 @@
#!/bin/sh
# Run shellcheck on scripts under bin and scripts directories
# shellcheck disable=SC2046,SC2038
shellcheck $(find scripts/ bin/ | xargs file | grep sh | cut -d':' -f1)
shellcheck $(find .copr/ scripts/ bin/ | xargs file | grep sh | cut -d':' -f1)

0 comments on commit 51baea7

Please sign in to comment.