Skip to content

Commit

Permalink
Fix shellcheck warnings in .copr/prep.sh script
Browse files Browse the repository at this point in the history
  • Loading branch information
siteshwar committed Aug 27, 2018
1 parent 56cfa0a commit 51baea7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions .copr/prep.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
2 changes: 1 addition & 1 deletion bin/shellcheck
Original file line number Diff line number Diff line change
@@ -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.